计算仿真器上的WindowsAzure服务

计算仿真器上的WindowsAzure服务,azure,cloud,azure-worker-roles,Azure,Cloud,Azure Worker Roles,我制作了一个Windows Azure项目,作为工作者角色。它有一个简单的WCF服务。 当我在本地系统上运行它时,计算仿真程序给我以下错误 我安装了最新的Azure SDK工具包。请告诉我发生此错误的原因 at Microsoft.WindowsAzure.Diagnostics.ControlChannel.GetControlContainer() [Diagnostics]: Acquired mutex [Diagnostics] Information: C:\Users\kash

我制作了一个Windows Azure项目,作为工作者角色。它有一个简单的WCF服务。 当我在本地系统上运行它时,计算仿真程序给我以下错误

我安装了最新的Azure SDK工具包。请告诉我发生此错误的原因

at Microsoft.WindowsAzure.Diagnostics.ControlChannel.GetControlContainer() [Diagnostics]: Acquired mutex [Diagnostics] Information: C:\Users\kashif\AppData\Local\dftmp\Resources\85b2b7f8-61ec-499d-a473-b39674855c21\directory\DiagnosticStore\Monitor [Diagnostics] Information: C:\Users\kashif\Downloads\WCFWorkerRole\WCFWorkerRole\WCFWorkerRole\csx\Debug\roles\WCFWorker\diagnostics\x64\monitor\MonAgentHost.exe -LocalPath "C:\Users\kashif\AppData\Local\dftmp\Resources\85b2b7f8-61ec-499d-a473-b39674855c21\directory\DiagnosticStore\Monitor" -StaticConfigFile "C:\Users\kashif\AppData\Local\dftmp\Resources\85b2b7f8-61ec-499d-a473-b39674855c21\directory\DiagnosticStore\Monitor\Configuration\mastaticconfig.xml" -ConfigFile "C:\Users\kashif\AppData\Local\dftmp\Resources\85b2b7f8-61ec-499d-a473-b39674855c21\directory\DiagnosticStore\Monitor\Configuration\maconfig.xml" -ShutDownEvent WADDM-ShutDown-f615698470fe491ea136287908faa42c -InitializedEvent WADM-StartUp-f615698470fe491ea136287908faa42c -parent 11516 -events [MonAgentHost] Output: Agent will exit when WADDM-ShutDown-f615698470fe491ea136287908faa42c is signaled. [MonAgentHost] Output: Will signal WADM-StartUp-f615698470fe491ea136287908faa42c after the agent is initialized. [MonAgentHost] Output: Registered as an event consumer. [MonAgentHost] Output: Agent will exit when parent process 11516 exits. [MonAgentHost] Output: Monitoring Agent Started [Diagnostics]: Creating config channel server [Diagnostics]: Starting configuration channel polling [runtime] Role entrypoint . COMPLETED OnStart() [runtime] Role entrypoint . CALLING Run() Information: WCFWorker entry point called Information: Working Information: Working [MonAgentHost] Error: MA EVENT: 2012-06-04T13:40:32.487Z [MonAgentHost] Error: 2 [MonAgentHost] Error: 11292 [MonAgentHost] Error: 7264 [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) [MonAgentHost] Error: MA EVENT: 2012-06-04T13:40:32.504Z [MonAgentHost] Error: 2 [MonAgentHost] Error: 11292 [MonAgentHost] Error: 7264 [MonAgentHost] Error: NetTransport [MonAgentHost] Error: 0 [MonAgentHost] Error: x:\btsdx\215\services\monitoring\shared\nettransport\src\xblobconnection.cpp [MonAgentHost] Error: XBlobConnection::SendBytesRequestAndGetHttpStatus [MonAgentHost] Error: 1980 [MonAgentHost] Error: ffffffff80050006
大多数情况下,此异常与Azure开发存储启动过程直接相关。您无法启动Azure开发存储可能有几个原因。Azure开发存储依赖于本地SQL Server Express组件,因此有时与SQL Server组件相关的任何问题都可能导致此问题

要确保Azure开发存储正在运行,请尝试在管理模式下启动C:\Program Files\Windows Azure Emulator\Emulator\csmonitor.exe,然后验证您是否可以手动运行计算仿真器和开发存储

一旦上述测试顺利进行,请测试您的工作者角色+WCF应用程序,这样您就不会有任何问题。如果您在Azure存储正常运行时仍然看到问题,请在start()代码中显示您的工作者角色。(我还建议只创建一个非常简单的web或worker角色hello world示例,看看这是否会给您带来任何错误。这将证明您的SDK安装是否有任何问题)

添加了更多内容:

错误消息提供为“[MonAgentHost]错误:WinHttpGetProxyForUrl”(http://127.0.0.1)失败错误\u WINHTTP\u自动检测\u失败(12180)
“正如我在书中所描述的那样是良性的

接下来,根据上面的代码(以及示例链接),我真的没有看到任何显示错误的异常:

您是否尝试过使用访问服务:

http://{0}/MyService
it would be http://127.0.0.1:9001/MyService if you have followed the sample code provided in the link? 

另外,您的OnStart()函数与您提供的链接中的函数有很大的不同,我希望您知道您在代码中做什么,因为您提供的信息与前面的完全不同,因此除非您知道您在做什么,否则最好完全按照文章的内容来匹配结果

要解决此问题,您需要禁用“控制面板”->“网络和Internet”->“Internet选项”->“连接”->“LAN设置”中的“自动检测设置”选项。

您可能应该在上下文中共享您的工作者角色/WCF代码。请将您的代码添加到OP(问题),而不是作为注释。OP是什么?。。因为除了评论之外没有别的选择,别担心……你还没有——我已经为你添加了它。(OP=original post)如何提高我在堆栈溢出方面的声誉,因为我是StacOverflow的新手我的计算模拟器和存储运行正常。。但它仍然给出了同样的错误。。。我的服务非常简单,就像HelloWorld我运行这个示例一样。。。