I have put the caching application block setting in the web.config file but
when i call CacheManager.Ge tCacheManager() , i got an exception
("Configurat ion information is not available"). Following is the CAB settings:
<configSections >
<section name="CacheMana gerSettings"
type="Microsoft .ApplicationBlo cks.Cache.Cache ConfigurationHa ndler,Microsoft .ApplicationBlo cks.Cache" />
<section name="CacheServ ice"
type="Microsoft .ApplicationBlo cks.Cache.Cache ConfigurationHa ndler,Microsoft .ApplicationBlo cks.Cache" />
</configSections>
<!-- CACHING BLOCK SETTINGS -->
<CacheManagerSe ttings>
<StorageInfo AssemblyName="M icrosoft.Applic ationBlocks.Cac he"
ClassName="Micr osoft.Applicati onBlocks.Cache. Storages.Single tonCacheStorage "
Mode="InProc" Validated="fals e" Encrypted="fals e" />
<ScavengingIn fo AssemblyName="M icrosoft.Applic ationBlocks.Cac he"
ClassName="Micr osoft.Applicati onBlocks.Cache. Scavenging.LruS cavenging"
UtilizationForS cavenging="80" MaximumSize="20 0" />
<ExpirationIn fo Interval="15" />
</CacheManagerSet tings>
<CacheService >
<StorageInfo>
<AssemblyName>M icrosoft.Applic ationBlocks.Cac he</AssemblyName>
<ClassName>Micr osoft.Applicati onBlocks.Cache. Storages.Single tonCacheStorage </ClassName>
<Mode>InProc</Mode>
<MaximumSize>20 0</MaximumSize>
</StorageInfo>
<Scavenging>
<Algorithm>
<AssemblyName>M icrosoft.Applic ationBlocks.Cac he</AssemblyName>
<ClassName>Micr osoft.Applicati onBlocks.Cache. Scavenging.LruS canvenging</ClassName>
</Algorithm>
<MemoryPollingP eriod>60</MemoryPollingPe riod>
<UtilizationFor Scavenging>80</UtilizationForS cavenging>
</Scavenging>
<ExpirationChec kInterval>2</ExpirationCheck Interval>
</CacheService>
"Joris Dobbelsteen" wrote:
Yes.
What's wrong
- Joris
"Stanley" <St*****@discus sions.microsoft .com> wrote in message
news:2F******** *************** ***********@mic rosoft.com... has anyone managed to use cache application block in a web application?
thanks
stanley