Azure缓存2.2可以工作,但2.3.x不能 [英] Azure cache 2.2 works but 2.3.x doesnt

查看:45
本文介绍了Azure缓存2.2可以工作,但2.3.x不能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个天蓝色的项目,具有用于会话的专用缓存角色.使用azure缓存2.2及更低版本时,它可以正常工作,但是在我升级时,它失败并显示以下错误.我降级了,它又能正常工作了.

I have an azure project with a dedicated cache role for session. With azure cache 2.2 and lower it works just fine but when I upgrade it fails with the following error. I downgrade and it works again.

[SocketException(0x2af9):尚无此类主机]
Microsoft.ApplicationServer.Caching.AsyncResultNoResult.EndInvoke()+217 Microsoft.ApplicationServer.Caching.TcpClientChannelFactory.TcpConnectionCallback(IAsyncResult结果)+163

[SocketException (0x2af9): No such host is known]
Microsoft.ApplicationServer.Caching.AsyncResultNoResult.EndInvoke() +217 Microsoft.ApplicationServer.Caching.TcpClientChannelFactory.TcpConnectionCallback(IAsyncResult result) +163

[DataCacheException:ErrorCode:SubStatus:有一个暂时的失败.请稍后重试.附加信息:客户端正在尝试与之通信服务器:net.tcp://CacheWorkerRole:24233

[DataCacheException: ErrorCode:SubStatus:There is a temporary failure. Please retry later.... Additional Information : The client was trying to communicate with the server: net.tcp://CacheWorkerRole:24233

该错误似乎并没有导致任何效果.

The error doesn't seem to lead to anything that has worked.

想法?

Web配置

<dataCacheClients>
    <dataCacheClient name="default">
      <autoDiscover isEnabled="true" identifier="CacheWorkerRole" />
   </dataCacheClient>
  </dataCacheClients>

 <sessionState mode="Custom" customProvider="SessionProvider">
      <providers>                        
        <add name="SessionProvider" type="Microsoft.Web.DistributedCache.DistributedCacheSessionStateStoreProvider, Microsoft.Web.DistributedCache" cacheName="default" dataCacheClientName="default" applicationName="MIS" />
      </providers>
    </sessionState>

推荐答案

请确保您的云服务正在使用SDK版本2.3.基于此处的Nuget包页面: http://www.nuget.org/packages/Microsoft.WindowsAzure.Caching/,此版本的缓存仅适用于Azure SDK 2.3版.

Please ensure that your cloud service is using SDK Version 2.3. Based on the Nuget Package page here: http://www.nuget.org/packages/Microsoft.WindowsAzure.Caching/, this version of caching will only work with Azure SDK Version 2.3.

这篇关于Azure缓存2.2可以工作,但2.3.x不能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆