【问题标题】:Debugging on Windows Azure SDK 1.8 Emulator on Windows 8 does not work在 Windows 8 上的 Windows Azure SDK 1.8 模拟器上调试不起作用
【发布时间】:2012-11-08 15:34:35
【问题描述】:

每当我在 Visual Studio 中进行调试时,它都会将网站部署到 IIS / Compute Emulator 并给出以下消息:

将调试器附加到 IIS 工作进程时出错 对于角色实例的 URL 'http://127.255.0.0:82/' 'deployment18(521).TestApp.Azure.Website1.Web.UI_IN_0'。无法 在 Web 服务器上开始调试。无法启动 ASP.NET 调试。 更多信息可以通过启动项目而不用 调试。

然后当我查看调试器日志时,它说:

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.

有人有什么想法吗?

【问题讨论】:

    标签: asp.net azure azure-web-roles


    【解决方案1】:

    使用失败请求跟踪后,我可以看到我的应用程序初始化 (Web-AppInit)(IIS 8.0 中的新初始化功能)配置导致调试失败。

    所以消息是:如果您有 preloadEnabled 和 applicationInitialization 配置部分有点像这样,不要期望能够调试您的 Web 应用程序:

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

    我将把它放到 web.release.config 文件中,所以它只在生产中生效。

    【讨论】:

      猜你喜欢
      • 2012-12-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-10-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多