Windows Azure在角色缓存配置中

时间:2013-10-09 09:30:24

标签: c# asp.net azure

我查看了以下链接http://msdn.microsoft.com/en-us/library/windowsazure/gg185668.aspxhttp://msdn.microsoft.com/en-us/library/windowsazure/gg185682.aspx

 I want to configure Windows Azure Cache (In role Caching). i found that there 
 are two options Co-located Topology and Dedicated Topology.But i m using co-located i
 had configured web.config has shown in link but i couldn't able to do that plz see below
 web.config i had configured but i m getting error 

我试着从最近2天开始,但是我可以得到任何解决方法。但是你

web.config文件

 <configSections>
<section name="dataCacheClients" 
         type="Microsoft.ApplicationServer.Caching.DataCacheClientsSection, Microsoft.ApplicationServer.Caching.Core" 
         allowLocation="true" allowDefinition="Everywhere" />

<section name="cacheDiagnostics" 
         type="Microsoft.ApplicationServer.Caching.AzureCommon.DiagnosticsConfigurationSection, Microsoft.ApplicationServer.Caching.AzureCommon" 
         allowLocation="true" allowDefinition="Everywhere" />

 <system.web>
 <sessionState mode="Custom" customProvider="AFCacheSessionStateProvider">
  <providers>
    <add name="AFCacheSessionStateProvider" 
         type="Microsoft.Web.DistributedCache.DistributedCacheSessionStateStoreProvider, Microsoft.Web.DistributedCache" 
         cacheName="default" dataCacheClientName="default" applicationName="AFCacheSessionState"/>
  </providers>
</sessionState>
 </system.web>

 <dataCacheClients>

 <dataCacheClient name="default">
 <autoDiscover isEnabled="true" identifier="WebRole1" />
 </dataCacheClient>
 </dataCacheClients>
 <cacheDiagnostics>
<crashDump dumpLevel="Off" dumpStorageQuotaInMB="100" /></cacheDiagnostics> 
</configuration>

Error.png

enter image description here

1 个答案:

答案 0 :(得分:0)

这纯粹是因为缓存客户端二进制文件试图找到WebRole1,但由于WebRole1可能不存在而无法这样做。您可以检查配置中给出的缓存角色名称吗?

您可以在此处展示您的配置或分享缩小版本吗?