Building client on 2005 - Microsoft.ApplicationBlocks.Cache

Tech-Archive recommends: Speed Up your PC by fixing your registry



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.GetCacheService()
at Microsoft.ApplicationBlocks.Cache.CacheManager..ctor()
at Microsoft.ApplicationBlocks.Cache.CacheManager..cctor()

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.LruScavenging') which an
instance can't be created.
Data: System.Collections.ListDictionaryInternal
TargetSite: Microsoft.ApplicationBlocks.Cache.IScavengingAlgorithm
CreateInstance(Microsoft.ApplicationBlocks.Cache.CacheService,
Microsoft.ApplicationBlocks.Cache.ICacheStorage,
Microsoft.ApplicationBlocks.Cache.ICacheMetadata)
HelpLink: NULL
Source: Microsoft.ApplicationBlocks.Cache

StackTrace Information
*********************************************
at
Microsoft.ApplicationBlocks.Cache.ScavengingInfo.CreateInstance(CacheService
cacheService, ICacheStorage cacheStorage, ICacheMetadata cacheMetadata)
at Microsoft.ApplicationBlocks.Cache.CacheService..ctor()
at Microsoft.ApplicationBlocks.Cache.CacheService..cctor()

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.IScavengingAlgorithm.Init(Microsoft.ApplicationBlocks.Cache.CacheService,
Microsoft.ApplicationBlocks.Cache.ICacheStorage,
Microsoft.ApplicationBlocks.Cache.ICacheMetadata, System.Xml.XmlNode)
HelpLink: NULL
Source: Microsoft.ApplicationBlocks.Cache

StackTrace Information
*********************************************
at
Microsoft.ApplicationBlocks.Cache.Scavenging.LruScavenging.Microsoft.ApplicationBlocks.Cache.IScavengingAlgorithm.Init(CacheService
cachingService, ICacheStorage cacheStorage, ICacheMetadata cacheMetadata,
XmlNode configSection)
at
Microsoft.ApplicationBlocks.Cache.ScavengingInfo.CreateInstance(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 ?
.



Relevant Pages

  • ViewState Corrupted in Web Farm
    ... I get a Viewstate corrupted error on the Web servers(Win2K3, IIS 6.0, ... Exception Information ... Exception Type: System.Web.HttpUnhandledException ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: SQL XML in a multi-threaded environment
    ... I removed the reflection part and now calling the Execute method directly. ... Exception Information ... Exception Type: System.Runtime.InteropServices.COMException ...
    (microsoft.public.sqlserver.xml)
  • Re: SqlXml Bulk Load Error File Writing Bug
    ... I removed the reflection part and now calling the Execute method directly. ... Exception Information ... Exception Type: System.Runtime.InteropServices.COMException ...
    (microsoft.public.sqlserver.xml)
  • Upgarding smart client application to .net 2.0
    ... application block throws an exception on the following line of code... ... cacheService, ICacheStorage cacheStorage, ICacheMetadata cacheMetadata) ... cachingService, ICacheStorage cacheStorage, ICacheMetadata ...
    (microsoft.public.dotnet.faqs)
  • Upgarding smart client application to .net 2.0
    ... application block throws an exception on the following line of code... ... cacheService, ICacheStorage cacheStorage, ICacheMetadata cacheMetadata) ... cachingService, ICacheStorage cacheStorage, ICacheMetadata ...
    (microsoft.public.dotnet.general)