Click here to Skip to main content
14,878,829 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I am working with winfrom application, for caching i have implemented Enterprise library caching. The definition of cache manager in app.config section is like this

XML
<cachingConfiguration defaultCacheManager="Cache Manager">
<cacheManagers>
  <add expirationPollFrequencyInSeconds="60" maximumElementsInCacheBeforeScavenging="1000"
    numberToRemoveWhenScavenging="10" backingStoreName="Isolated Storage"
    name="Cache Manager" />
</cacheManagers>
<backingStores>
  <add partitionName="CachePartition" encryptionProviderName=""
    type="Microsoft.Practices.EnterpriseLibrary.Caching.BackingStoreImplementations.IsolatedStorageBackingStore, Microsoft.Practices.EnterpriseLibrary.Caching, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    name="Isolated Storage" />
</backingStores>


I am adding/removing contents from cached from code depending on multiple condition. Now when i try to run multiple instance of same project, during the execution I get the error " FileNotFoundException: Could not find file 'CachePartitionsdfsdfsdfsdf\1169009857\LA'."

What is the efficient way to handle cases when multiple instance of same project and caching ?

Thanks, Binaya
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900