简体   繁体   English

在Windows 8上的Windows Azure SDK 1.8模拟器上进行调试不起作用

[英]Debugging on Windows Azure SDK 1.8 Emulator on Windows 8 does not work

Whenever I hit debug in Visual Studio, it deploys the website into IIS / Compute Emulator and gives the following message: 每当我在Visual Studio中点击调试时,它都会将网站部署到IIS / Compute Emulator中并提供以下消息:

There was an error attaching the debugger to the IIS worker process for URL 'http://127.255.0.0:82/' for role instance 'deployment18(521).TestApp.Azure.Website1.Web.UI_IN_0'. 对于角色实例“deployment18(521).TestApp.Azure.Website1.Web.UI_IN_0”,将调试器附加到URL“http://127.255.0.0:82/”的IIS工作进程时出错。 Unable to start debugging on the web server. 无法在Web服务器上启动调试。 Could not start ASP.NET debugging. 无法启动ASP.NET调试。 More information may be available by starting the project without debugging. 无需调试即可通过启动项目获得更多信息。

Then when I look at the debugger log it says: 然后,当我查看调试器日志时,它说:

http://127.255.0.0:82/debugattach.aspx
----------------------------------------------------------------------
Status code=417 (Expectation Failed)
Protocol version=1.1
Cached=False
Content-Length=60
Cache-Control=private, no-transform
Content-Type=text/html
Date=Thu, 08 Nov 2012 14:52:08 GMT
----------------------------------------------------------------------
The page cannot be displayed because the expectation failed.

Does anyone have any ideas? 有没有人有任何想法?

After using Failed Request Tracing I was able to see that my Application Initialization (Web-AppInit) (the new initialization feature in IIS 8.0) configuration was making the debugging fail. 使用失败的请求跟踪后,我能够看到我的应用程序初始化(Web-AppInit)(IIS 8.0中的新初始化功能)配置使调试失败。

So the message is: don't expect to be able to debug your web application if you have preloadEnabled and an applicationInitialization config section a bit like this: 所以消息是:如果您有preloadEnabled和applicationInitialization配置部分,请不要期望能够调试您的Web应用程序:

 <applicationInitialization doAppInitAfterRestart="true" remapManagedRequestsTo="loading.html" skipManagedModules="true">
      <add initializationPage="/" />
    </applicationInitialization>

I will be putting this into the web.release.config file so it only takes effect in production. 我将把它放到web.release.config文件中,所以它只在生产中生效。

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

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