http://www.dotblogs.com.tw/mis2000lab/archive/2014/01/13/vs2013_iis_outputcache_substitution_error.aspx

OutputCache在VS 2012/2013的錯誤 -- 張貼快取替換與IIS修改回應緩衝的Integrated不相容(Post cache substitution is not compatible with modules in the IIS integrated pipeline that modify the response buffers)

 
 
 

執行以前的範例,在新版 VS 2013卻發現錯誤?

ASP.NET的OutputCache #1。直接看執行結果,學習Cache一看就懂。

ASP.NET的OutputCache #2,學習Cache一看就懂。

 

 

錯誤訊息:

 
 
If the application is hosted on IIS7 in Integrated Pipeline mode, an exception of type System.InvalidOperationException occurs with the following details:
 
Exception Details: System.InvalidOperationException: Post cache substitution is not compatible with modules in the IIS integrated pipeline that modify the response buffers.  Either a native module in the pipeline has modified an HTTP_DATA_CHUNK structure associated with a managed post cache substitution callback, or a managed filter has modified the response.
 

 

最主要是 Response.WriteSubstitution() 與 Substitution控制項引起

 

 

解決方法:

     請把您的網站、專案,修改成下面這樣。

    上圖的錯誤訊息,其實講得很清楚。

 

 

如果還無法解決,請重新開一個「空」網站來執行

也需做好上圖設定。

 

 

不過,程式裡面的「Response.WriteSubstitution() 與 Substitution控制項」仍無法運作

 

請看微軟的說明    http://support.microsoft.com/kb/2014472

To avoid the problem, choose one of the following options:
 
    Disable output caching on pages that are using substitution blocks.
 
OR
 
    Do not use the response filter module.

 

 

相關文章與解法(關閉 IIS的 Response Filter) 
 
                          
 
 
 
 

 

 

 


 

............................. 寫信給我,mis2000lab (at) yahoo.com.台灣........................................................

.............................   facebook社團   https://www.facebook.com/mis2000lab   ............................

.............................   Google+   https://plus.google.com/100202398389206570368/posts ..............

arrow
arrow
    全站熱搜

    MIS2000 Lab 發表在 痞客邦 留言(0) 人氣()