private CacheManager cacheManager = CacheFactory.GetCacheManager();

Topics: Caching Application Block
Dec 12, 2007 at 7:09 AM
Hi All,

Getting the error when trying to create an instance of CacheManager saying FileNotFindException for PriceBookForUser...

Which I have set in my web.config. Setting is given below:

<cachingConfiguration defaultCacheManager="Cache Manager">
<cacheManagers>
<add expirationPollFrequencyInSeconds="14700" maximumElementsInCacheBeforeScavenging="1000" numberToRemoveWhenScavenging="10" backingStoreName="inMemory" name="Cache Manager"/>
</cacheManagers>
<backingStores>
<add partitionName="PriceBookForUser" encryptionProviderName="" type="Microsoft.Practices.EnterpriseLibrary.Caching.BackingStoreImplementations.IsolatedStorageBackingStore, Microsoft.Practices.EnterpriseLibrary.Caching, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null" name="inMemory"/>
</backingStores>
</cachingConfiguration>

<appSettings>
<!-- Path of the Cache config file. -->
<add key="CacheConfigPath" value="{base.dir}Config\Cache.xml"/>
<add key="FileCachePath" value="D:\Program Files\EasyQuote\"/>
<add key="ErrorConfigPath" value="{base.dir}Config\ErrorMessages.xml"/>
<add key="TimeOut" value="1200000"/>
</appSettings>

Any help on the above is appriciate.

thanks :) in advance.