2017-02-06 49 views
0

我有一個相當老的ASP.NET應用程序,面向.NET Framework 4.5.2。我使用Visual Studio 2013而與更新3切換到VS 2015年後的應用程序的工作我開發的機器上很好,我開始收到以下異常:從VS 2013切換到VS 2015之後ASP.NET Web應用程序出現異常

[出現InvalidOperationException:郵政緩存取代是用模塊不兼容IIS集成管道修改響應緩衝區。管道中的本地模塊修改了與託管後緩存替代回調相關聯的HTTP_DATA_CHUNK結構,或者託管篩選器已修改響應。] System.Web.HttpWriter.GetIntegratedSnapshot(布爾型& hasSubstBlocks,IIS7WorkerRequest wr)+5025795 System.Web.HttpResponse.GetSnapshot()+150 System.Web.Caching.OutputCacheModule.OnLeave(Object source,EventArgs eventArgs)+1091 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()+142 System.Web.HttpApplication.ExecuteStep(IExecutionStep步驟,布爾& completedSynchronously)92

+0

https://support.microsoft.com/en-us/help/2014472/asp.net-response-過濾和後緩存替換是不兼容的和http://stackoverflow.com/questions/17574702/post-cache-substitution-error-running-locally – stuartd

+0

@stuartd - 我正在運行IIS Express 10,隨着VS 2015的來臨。 – ebhh2001

回答

0

嘗試禁用瀏覽器鏈接。

從Visual Studio中,在「瀏覽器鏈接」下拉菜單中,取消選中「啓用瀏覽器鏈接」。

你也可以做到這一點在Web.config文件中通過簡單地添加

<add key="vs:EnableBrowserLink" value="false" />

0

該解決方案實際上很簡單,基於this post。 BrowserLink在VS 2015中默認打開。在VS UI中使用菜單關閉BrowserLink後,問題消失。

相關問題