[英]Visual Studio IIS Debugging error
我們剛剛將.net 4.6.1 MVC / WebApi應用程序從IISExpress移到了IIS,現在在嘗試從Visual Studio 2015調試應用程序時遇到以下異常:
無法在Web服務器上啟動調試。 基礎連接已關閉:接收時發生意外錯誤
任何幫助表示贊賞。
找到了答案:
我們已經進行了URL重寫,從而阻止了VisualStudio訪問/debugattach.aspx。
從規則中排除debugattach.aspx后,Visual Studio可以訪問資源並解決問題。 因此,規則最終看起來像這樣:
<rule name="subpath-kill" stopProcessing="true"> <match url="^(cacherefresh|debugattach.aspx)$" negate="true" /> <action type="AbortRequest" /> </rule>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.