![](/img/trans.png)
[英]Cannot find the physical directory for virtual path, in Windows Azure project SDK 1.8
[英]Debugging on Windows Azure SDK 1.8 Emulator on Windows 8 does not work
每當我在Visual Studio中點擊調試時,它都會將網站部署到IIS / Compute Emulator中並提供以下消息:
對於角色實例“deployment18(521).TestApp.Azure.Website1.Web.UI_IN_0”,將調試器附加到URL“http://127.255.0.0:82/”的IIS工作進程時出錯。 無法在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.
有沒有人有任何想法?
使用失敗的請求跟蹤后,我能夠看到我的應用程序初始化(Web-AppInit)(IIS 8.0中的新初始化功能)配置使調試失敗。
所以消息是:如果您有preloadEnabled和applicationInitialization配置部分,請不要期望能夠調試您的Web應用程序:
<applicationInitialization doAppInitAfterRestart="true" remapManagedRequestsTo="loading.html" skipManagedModules="true">
<add initializationPage="/" />
</applicationInitialization>
我將把它放到web.release.config文件中,所以它只在生產中生效。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.