Groups | Blog | Home
all groups > dotnet distributed apps > october 2003 >

dotnet distributed apps : CAB with GAC deployment


Brad Quinn
10/1/2003 2:19:40 PM
I'm trying to use the caching application block in
conjunction with the global assembly cache.

It's blowing up, early in the CacheManager constructor
i.e. string mode = ...

I'll have time to look at this tomorrow, but in the
meantime I was wondering if anyone had any experience
with this application block and the GAC.

I suspect that it's not finding some config file (not
surprisingly) but the documentation is a little light in
this area.

Of course everything works fine when I reference the
projects (or assemblies) directly.

Thanks,
Brad
Brad Quinn
10/3/2003 7:55:37 AM
Well, I was close. It couldn't find the
Microsoft.ApplicationBlocks.Cache assembly.

Since that assembly is now in the Global Assembly Cache
(GAC), I had modify my application's app.config file,
like so;

<section name="CacheManagerSettings"
type="Microsoft.ApplicationBlocks.Cache.CacheConfiguration
Handler,Microsoft.ApplicationBlocks.Cache,Version=1.0.0.0,
Culture=neutral,PublicKeyToken=d6cd69ca51c7ac55" />

This was "no big deal" for me to figure out, but for a
novice this could be a real pain.

The help file goes into some detail about how to sign an
assembly so that it can be installed in the GAC. But
then it doesn't bother to even mention that your
app.config will need to be modified.

Why isn't the source for the help available? It sure
could use a little love.


[quoted text, click to view]
Brad Quinn
10/3/2003 9:52:10 AM
While I'm at it;

Why is the MemoryMappedFile project's assembly not named
like the other assemblies in the solution?

Why does the Cache project contain an AssemblyTitle
assembly attribute, when the others do not?

I just want everything to appear consistent when I cause
these application blocks to appear in the "Add Reference"
dialog.

Why is the Data project built with XML docs, but not the
others?
AddThis Social Bookmark Button