【发布时间】:2012-07-16 05:08:21
【问题描述】:
我在使用 Windows Azure Cache Preview 时遇到了一些问题。
我已在此处添加 Nuget 包:http://nuget.org/packages/Microsoft.WindowsAzure.Caching 并已根据 windowsazure.com 上的信息配置我的角色以存储 ASP.NET 会话状态
问题是,调试时我得到No connection could be made because the target machine actively refused it 127.255.0.0:20004。 Azure 使用的开发 IP 是 12.7.0.0.1:81
我不知道为什么,即使是示例 Windows Azure Caching (Preview) Session State and Output Caching Sample 也会做同样的事情。
更新:日志错误:
w3wp.exe Error: 0 : ERROR: <SimpleSendReceiveModule> b4551065-941b-4bdb-9487-57d9207af308:Request - 1, result - Status=ChannelOpenFailed[System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it 127.255.0.0:20004
at Microsoft.ApplicationServer.Caching.AsyncResultNoResult.EndInvoke()
at Microsoft.ApplicationServer.Caching.TcpClientChannel.ConnectionCallback(IAsyncResult result)] for end point [net.tcp://127.255.0.0:20004]
另外,更多的测试表明它不是用于会话状态存储,而是所有与缓存相关的任务。
【问题讨论】:
-
我遇到了类似的问题,在我的情况下,我通过更改区域设置解决了这个问题——更多详细信息请参见this SO answer。
标签: asp.net caching azure asp.net-session