The type initializer for 'Microsoft.ApplicationBlocks.Cache.CacheService'
threw an exception.
We migrated our windows application from 1.1 to 2.0. The debug and Release
mode of the application work fine with some tweaking. But when the setup
project is migrated to 2.0 the installation gives the follwing error:
- <ExceptionInformation>
<AdditionalInformationProperty ExceptionManager.MachineName="TestDev"
ExceptionManager.TimeStamp="2/7/2007 1:06:36 PM"
ExceptionManager.FullName="Microsoft.ApplicationBl ocks.ExceptionManagement,
Version=1.0.1913.30369, Culture=neutral, PublicKeyToken=null"
ExceptionManager.AppDomainName="sst.exe" ExceptionManager.ThreadIdentity=""
ExceptionManager.WindowsIdentity="TRADERPUBDEV\use r" />
- <Exception ExceptionType="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)"
Source="Microsoft.ApplicationBlocks.Cache">
<StackTrace>at
Microsoft.ApplicationBlocks.Cache.Scavenging.LruSc avenging.Microsoft.ApplicationBlocks.Cache.IScaven gingAlgorithm.Init(CacheService
cachingService, ICacheStorage cacheStorage, ICacheMetadata cacheMetadata,
XmlNode configSection)</StackTrace>
</Exception>
</ExceptionInformation>
- <ExceptionInformation>
<AdditionalInformationProperty ExceptionManager.MachineName="TestDev"
ExceptionManager.TimeStamp="2/7/2007 1:06:40 PM"
ExceptionManager.FullName="Microsoft.ApplicationBl ocks.ExceptionManagement,
Version=1.0.1913.30369, Culture=neutral, PublicKeyToken=null"
ExceptionManager.AppDomainName="Sales Studio.exe"
ExceptionManager.ThreadIdentity=""
ExceptionManager.WindowsIdentity="TRADERPUBDEV\use r" />
- <Exception ExceptionType="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.ISca vengingAlgorithm
CreateInstance(Microsoft.ApplicationBlocks.Cache.C acheService,
Microsoft.ApplicationBlocks.Cache.ICacheStorage,
Microsoft.ApplicationBlocks.Cache.ICacheMetadata)"
Source="Microsoft.ApplicationBlocks.Cache">
<StackTrace>at
Microsoft.ApplicationBlocks.Cache.ScavengingInfo.C reateInstance(CacheService
cacheService, ICacheStorage cacheStorage, ICacheMetadata cacheMetadata) at
Microsoft.ApplicationBlocks.Cache.CacheService..ct or()</StackTrace>
- <Exception ExceptionType="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)"
Source="Microsoft.ApplicationBlocks.Cache">
<StackTrace>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)</StackTrace>
</Exception>
</Exception>
</ExceptionInformation>