2017-04-18 71 views
0

我們剛剛搬到從IISExpress到IIS我們的.NET 4.6.1 MVC /的WebAPI應用程序,現在越來越試圖調試從Visual Studio 2015年應用程序時出現以下異常:Visual Studio的IIS調試錯誤

無法在Web服務器上開始調試。底層連接已關閉:接收時發生意外錯誤

任何幫助表示讚賞。

回答

0

找到了答案:

我們有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>

See this post for related info