By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,828 Members | 1,862 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,828 IT Pros & Developers. It's quick & easy.

Building client on 2005 - Microsoft.ApplicationBlocks.Cache

P: n/a
When a try to run a client build on 2005, which uses the
Microsoft.ApplicationBlocks.Cache.dll reference, when using a
Microsoft.ApplicationBlocks.Cache.dll created on Debug mode, the client works
just fine, but when a use a Microsoft.ApplicationBlocks.Cache.dll created on
Release mode, the client doesn't work no more, and I get this error message:

*********************************************
1) Exception Information
*********************************************
Exception Type: System.TypeInitializationException
TypeName: Microsoft.ApplicationBlocks.Cache.CacheManager
Message: The type initializer for
'Microsoft.ApplicationBlocks.Cache.CacheManager' threw an exception.
Data: System.Collections.ListDictionaryInternal
TargetSite: Microsoft.ApplicationBlocks.Cache.CacheManager GetCacheManager()
HelpLink: NULL
Source: Microsoft.ApplicationBlocks.Cache

2) Exception Information
*********************************************
Exception Type: System.TypeInitializationException
TypeName: Microsoft.ApplicationBlocks.Cache.CacheService
Message: The type initializer for
'Microsoft.ApplicationBlocks.Cache.CacheService' threw an exception.
Data: System.Collections.ListDictionaryInternal
TargetSite: Microsoft.ApplicationBlocks.Cache.CacheService GetCacheService()
HelpLink: NULL
Source: Microsoft.ApplicationBlocks.Cache

StackTrace Information
*********************************************
at Microsoft.ApplicationBlocks.Cache.CacheService.Get CacheService()
at Microsoft.ApplicationBlocks.Cache.CacheManager..ct or()
at Microsoft.ApplicationBlocks.Cache.CacheManager..cc tor()

3) Exception Information
*********************************************
Exception Type: System.Exception
Message: The XML configuration document is invalid, the ScavengingInfo
section defines a type (assembly: 'Microsoft.ApplicationBlocks.Cache', type
'Microsoft.ApplicationBlocks.Cache.Scavenging.LruS cavenging') which an
instance can't be created.
Data: System.Collections.ListDictionaryInternal
TargetSite: Microsoft.ApplicationBlocks.Cache.IScavengingAlgor ithm
CreateInstance(Microsoft.ApplicationBlocks.Cache.C acheService,
Microsoft.ApplicationBlocks.Cache.ICacheStorage,
Microsoft.ApplicationBlocks.Cache.ICacheMetadata)
HelpLink: NULL
Source: Microsoft.ApplicationBlocks.Cache

StackTrace Information
*********************************************
at
Microsoft.ApplicationBlocks.Cache.ScavengingInfo.C reateInstance(CacheService
cacheService, ICacheStorage cacheStorage, ICacheMetadata cacheMetadata)
at Microsoft.ApplicationBlocks.Cache.CacheService..ct or()
at Microsoft.ApplicationBlocks.Cache.CacheService..cc tor()

4) Exception Information
*********************************************
Exception Type: System.ArgumentNullException
Message: The cache storage cannot be null.
Parameter name: cacheStorage
ParamName: cacheStorage
Data: System.Collections.ListDictionaryInternal
TargetSite: Void
Microsoft.ApplicationBlocks.Cache.IScavengingAlgor ithm.Init(Microsoft.ApplicationBlocks.Cache.CacheS ervice,
Microsoft.ApplicationBlocks.Cache.ICacheStorage,
Microsoft.ApplicationBlocks.Cache.ICacheMetadata, System.Xml.XmlNode)
HelpLink: NULL
Source: Microsoft.ApplicationBlocks.Cache

StackTrace Information
*********************************************
at
Microsoft.ApplicationBlocks.Cache.Scavenging.LruSc avenging.Microsoft.ApplicationBlocks.Cache.IScaven gingAlgorithm.Init(CacheService
cachingService, ICacheStorage cacheStorage, ICacheMetadata cacheMetadata,
XmlNode configSection)
at
Microsoft.ApplicationBlocks.Cache.ScavengingInfo.C reateInstance(CacheService
cacheService, ICacheStorage cacheStorage, ICacheMetadata cacheMetadata)

*********************************************
I saw someone else from this forum has this same error message, so is there
a way to fix this ?
Jun 23 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.