简体   繁体   English

Windows Azure计算模拟器错误

[英]Windows Azure Compute Emulator Error

I have Azure SDK 1.6, WIF, Nuget 1.5, Azure Mobile Toolkik, Visual Studio Ultimate 2010 sp1, Windows Phone SDK 7.1 and many other latest sdk. 我有Azure SDK 1.6,WIF,Nuget 1.5,Azure Mobile Toolkik,Visual Studio Ultimate 2010 sp1,Windows Phone SDK 7.1和许多其他最新的SDK。 I tried two sample, the Tweet your blob from azure toolkit for wp7, and the following very basic sample from channel 9: http://channel9.msdn.com/posts/Windows-Phone-Push-Notifications-and-Windows-Azure I can reach the webrole, i see the phone app running but both sample fail when the try to communicate (in the first case trying to tweet, in the second trying to register to the pushnotification service, it seems like the emulator cannot reach the local endpoint on 127.0.0.1. I repeated the same exactly steps on a collegue machine with the same configuration and everything works fine. 我尝试了两个示例,分别是wp7的azure工具包中的Tweet your blob和第9频道中的以下非常基本的示例: http : //channel9.msdn.com/posts/Windows-Phone-Push-Notifications-and-Windows-Azure我可以到达webrole,我看到电话应用程序正在运行,但是当尝试进行通信时,两个示例都失败了(在第一种情况下尝试发送推文,在第二种情况下尝试注册到pushnotification服务,看来模拟器无法到达本地端点在127.0.0.1上,我在具有相同配置的大学计算机上重复了相同的步骤,并且一切正常。

The only difference i noticed is that my deployment show the following log (Compute Emulator): 我注意到的唯一区别是我的部署显示了以下日志(计算模拟器):

[MonAgentHost] Error: MA EVENT: 2011-12-01T01:11:02.168Z
[MonAgentHost] Error:     2
[MonAgentHost] Error:     10352
[MonAgentHost] Error:     14592
[MonAgentHost] Error:     NetTransport
[MonAgentHost] Error:     0
[MonAgentHost] Error:     x:\btsdx\215\services\monitoring\shared\nettransport\src\netutils.cpp
[MonAgentHost] Error:     OpenHttpSession
[MonAgentHost] Error:     749
[MonAgentHost] Error:     0
[MonAgentHost] Error:     2f94
[MonAgentHost] Error:     
[MonAgentHost] Error:     WinHttpGetProxyForUrl(http://127.0.0.1) failed ERROR_WINHTTP_AUTODETECTION_FAILED (12180)

Googling around i found only a topics regarding an issue with the azure sdk 1.3 which shouldn't prevent the application from running properly, but i installed sdk 1.6 (twice). 谷歌搜索我只发现了一个关于azure sdk 1.3的问题,这不应该阻止应用程序正常运行,但是我安装了sdk 1.6(两次)。

Any hints to find a solution or identify the problem will be appreciated, i checked everything i could, and i don't even known if the problem is related with the message. 寻找解决方案或确定问题的任何提示将不胜感激,我检查了所有可能的方法,甚至不知道问题是否与消息有关。

You should compare you and your colleague's internet proxy settings (network settings). 您应该将您和同事的Internet代理设置(网络设置)进行比较。

For some reason, it's trying to detect which internet proxy to use for http://127.0.0.1 which it shouldn't - it's local address. 由于某种原因,它试图检测不应该为http://127.0.0.1使用哪个Internet代理-它是本地地址。

WinHttpGetProxyForUrl(http://127.0.0.1) failed ERROR_WINHTTP_AUTODETECTION_FAILED (12180) WinHttpGetProxyForUrl(http://127.0.0.1)失败ERROR_WINHTTP_AUTODETECTION_FAILED(12180)

http://msdn.microsoft.com/en-us/library/windows/desktop/aa384097(v=vs.85).aspx http://msdn.microsoft.com/zh-CN/library/windows/desktop/aa384097(v=vs.85).aspx

Does it work if you disable auto detect proxy in your network settings? 如果您在网络设置中禁用了自动检测代理,是否可以正常工作?

Another possibility is that error in your log is a Red Herring - this blog post suggests those errors in the log are benign and don't make anything fail: 另一种可能是您的日志中的错误是“红鲱鱼”-该博客文章表明日志中的这些错误是良性的,并且不会使任何错误:

http://blogs.msdn.com/b/avkashchauhan/archive/2011/01/20/winhttpgetproxyforurl-failed-error-winhttp-autodetection-failed-12180-error-message-in-windows-azure-infrastructure-log.aspx http://blogs.msdn.com/b/avkashchauhan/archive/2011/01/20/winhttpgetproxyforurl-failed-error-winhttp-autodetection-failed-12180-error-message-in-windows-azure-infrastructure-log。 aspx

为了摆脱这种情况,您需要在控制面板->网络和Internet-> Internet选项->连接-> LAN设置中禁用“自动检测设置”选项。

I had the exact same issue and I fixed it by making sure that my port forwarding service ( PassPort ) was not running prior to starting up the Azure emulator. 我遇到了完全相同的问题,并通过在启动Azure模拟器之前确保我的端口转发服务( PassPort )未运行来解决此问题。

When I installed PassPort it installed a Windows service and set it to start automatically. 当我安装PassPort时,它安装了Windows服务并将其设置为自动启动。 I stopped the service, set it to only start manually, then restarted the Azure emulator. 我停止了该服务,将其设置为仅手动启动,然后重新启动了Azure模拟器。 After that I was up and running again. 之后,我又重新起来了。

For some background, the reason I was even using PassPort in the first place was to do some IE8 testing of my Azure hosted web site using a Windows XP VM. 在某些背景下,我什至首先使用PassPort的原因是使用Windows XP VM对我的Azure托管网站进行了IE8测试。 I found the steps to set this up on this post which linked to this blog . 我在链接到此博客的 帖子上找到了设置此步骤的步骤。 I can still use PassPort and my VM to test my site in IE8, I just have to make sure not to start the PassPort service until after the Azure emulator and web site are up and running. 我仍然可以使用PassPort和我的VM在IE8中测试我的网站,我只需要确保在Azure模拟器和网站启动并运行之后才启动PassPort服务。

Your problem may not be related specifically to a port forwarding service but rather some other service that may have stolen port 81 from the Azure emulator. 您的问题可能与端口转发服务无关,而与其他一些服务可能已从Azure模拟器窃取了端口81有关。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM