2013-02-28 58 views
1

因此,就在最近我的主计算机开始出现Window Azure仿真器的问题。当我尝试使用模拟器调试我的解决方案时,它最终会通过尝试连接进行循环。当使用模拟器时,Windows Azure目标机器主动拒绝连接

这是我在输出窗口得到:

> iisexpress.exe Warning: 0 : WARNING: <SimpleSendReceiveModule> d8c9fa85-ded3-48ad-94a3-ec31e2123bb3: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.AsyncResult`1.EndInvoke() 
    at Microsoft.ApplicationServer.Caching.TcpClientChannelFactory.EndConnect(IAsyncResult asyncResult) 
    at 

Microsoft.ApplicationServer.Caching.TcpClientChannel.ConnectionCallback(IAsyncResult result)] for end point [net.tcp://127.255.0.0:20004] 
Microsoft.WindowsAzure.ServiceRuntime Verbose: 500 : Role instance status check starting 
Microsoft.WindowsAzure.ServiceRuntime Verbose: 502 : Role instance status check succeeded: Ready 
Microsoft.WindowsAzure.ServiceRuntime Verbose: 500 : Role instance status check starting 
Microsoft.WindowsAzure.ServiceRuntime Verbose: 502 : Role instance status check succeeded: Ready 
Microsoft.WindowsAzure.ServiceRuntime Verbose: 500 : Role instance status check starting 
Microsoft.WindowsAzure.ServiceRuntime Verbose: 502 : Role instance status check succeeded: Ready 
Microsoft.WindowsAzure.ServiceRuntime Verbose: 500 : Role instance status check starting 
Microsoft.WindowsAzure.ServiceRuntime Verbose: 502 : Role instance status check succeeded: Ready 
iisexpress.exe Warning: 0 : WARNING: <DistributedCache.SocketClientChannel.1> Request 1 to host net.tcp://127.255.0.0:20004/ failed 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.AsyncResult`1.EndInvoke() 
    at Microsoft.ApplicationServer.Caching.TcpClientChannelFactory.EndConnect(IAsyncResult asyncResult) 
    at Microsoft.ApplicationServer.Caching.TcpClientChannel.ConnectionCallback(IAsyncResult result)] 
iisexpress.exe Warning: 0 : WARNING: <SimpleSendReceiveModule> d8c9fa85-ded3-48ad-94a3-ec31e2123bb3: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 

通过研究我发现,127.255.X.X IP是一个模拟器,使从它的内部负载平衡器的IP。我不明白的是为什么我的机器决定不想接受这个连接。我关闭了所有的防火墙,重新安装了视觉工作室,完全重新安装了windows azure,但仍然没有运气。这绝对不是基于代码的,因为我的同事和辅助机器没有问题。但是,与我的seconday机器一起工作并不可取,所以我希望得到这个工作,并且我想找到一个解决方案,它不涉及完全格式化我的机器,这是我的知识在这里的位置。

目前运行2012年10月发布的azure,visual studio 2012和.net 4.5。

任何帮助,将不胜感激。

回答

2

我在Windows 8下有一个与Azure SDK 2.0类似的问题,而我在Windows 7下使用Azure SDK 1.8时没有问题。就像你我最初想到的是与网络有关的问题。然后,我尝试禁用缓存,并注意到我的云项目中的其他角色正确地注意到缓存服务不可用,并显示另一条错误消息。

根据我的经验,问题可能与您的区域设置有关,特别是长时间格式指定的方式。我从SO question中发现缓存仿真程序使用logman.exe作为记录目的,它使用来自区域设置的长时间格式(例如我的Windows 8计算机中的HH.mm.ss具有意大利设置)将参数传递给cnf - 但实际上cnf要求持续时间完全采用格式HH:mm:ss(用冒号代替点)。在更改了长时间格式后,缓存在计算机模拟器中开始正常工作。

您也可以考虑这些解决方案:

相关问题