2013-10-09 36 views
0

我看着下面的链接http://msdn.microsoft.com/en-us/library/windowsazure/gg185668.aspxhttp://msdn.microsoft.com/en-us/library/windowsazure/gg185682.aspx的Windows Azure在角色高速缓存配置

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天努力,但我能得到任何soln..thnk你

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

+0

请还包括引发异常的代码位。 – MikeWo

+0

看起来有点奇怪,尽管在模拟器中运行缓存可能会有些激动。这个blob文章可能(或可能不)有一些有用的指针; http://gauravmantri.com/2013/08/07/making-windows-azure-caching-work-in-compute-emulator/ – Frans

+0

我没有得到源代码中的任何异常,当我运行这个项目它继续加载2到3分钟,并最终显示这个错误页面给我.. –

回答

0

这纯粹是因为高速缓存客户机二进制文件试图查找WebRole1,但不能这样做,因为可能WebRole1不存在。你可以检查你在配置中给出的缓存角色名称吗?

你能在这里展示你的配置或者共享一个缩小的repro吗?