Help ,CachingBlock企业库问题

lixin546 2011-05-31 06:20:40
配置文件
<configSections>
<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data"/>
<section name="cachingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Caching.Configuration.CacheManagerSettings, Microsoft.Practices.EnterpriseLibrary.Caching"/>
</configSections>
<dataConfiguration defaultDatabase="ExampleDatabase" />
<connectionStrings>
<add name="ExampleDatabase" connectionString="Database=Caching;Server=local;Integrated Security=SSPI" />
</connectionStrings>
<cachingConfiguration defaultCacheManager="DatabaseCacheManager">
<cacheManagers>
<add name="DatabaseCacheManager" type="Microsoft.Practices.EnterpriseLibrary.Caching.CacheManager, Microsoft.Practices.EnterpriseLibrary.Caching, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
expirationPollFrequencyInSeconds="15" maximumElementsInCacheBeforeScavenging="1000"
numberToRemoveWhenScavenging="10" backingStoreName="Data Cache Storage" />
</cacheManagers>
<backingStores>
<add name="Data Cache Storage" type="Microsoft.Practices.EnterpriseLibrary.Caching.Database.DataBackingStore, Microsoft.Practices.EnterpriseLibrary.Caching.Database, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
encryptionProviderName="" databaseInstanceName="ExampleDatabase"
partitionName="CachingExample" />
</backingStores>
</cachingConfiguration>
...全文
47 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
rfid546 2011-06-02
  • 打赏
  • 举报
回复
换5.0试试,加载不了4.1DLL
lixin546 2011-05-31
  • 打赏
  • 举报
回复
错误信息
Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Caching, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

110,538

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧