顯示具有 Outputcache 標籤的文章。 顯示所有文章
顯示具有 Outputcache 標籤的文章。 顯示所有文章

2021年2月1日 星期一

[ASP.NET]OutputCache輸出快取 - Web Form + MVC適用 (.NET Framework)

OutputCache輸出快取 - ASP .NET Web Form + MVC適用 (.NET Framework)。

請參閱書籍 - ASP. NET專題實務(II) / 博碩出版。https://www.books.com.tw/products/0010838463

 

Youtube影片觀賞 - https://youtu.be/2jO4djZltfA


 

00:02:02 成果展示(demo)

00:05:30 優缺點、使用時機。

00:09:23 ** Web Form **


[學員感言] mis2000lab課程評價 - ASP.NET MVC , WebForm

https://www.dotblogs.com.tw/mis2000lab/2023/01/30/mis2000lab_MVC_onlineLearning2023

[ASP.NET Core MVC]第一天 免費課程 3小時完整試聽

https://www.dotblogs.com.tw/mis2000lab/2023/01/30/AspNetCore_MVC_First_Day_Free_20230130

從最早的 75小時MVC課程,目前已經延伸到 115小時,也包含了 .NET Core

.NET Core 6 MVC線上教學 - MIS2000Lab 課程大綱 與 試聽

https://dotblogs.com.tw/mis2000lab/2021/07/18/NET_MVC_Online_Free_Learning_mis2000lab 

購買完整MVC課程(一百小時),限時六折優惠並免費加贈兩萬元「.NET Core升級課程」,請直接來信洽詢

(太便宜!太划算,不能公開) mis2000lab (at) yahoo.com.tw ; school (at) mis2000lab.net

 

 

2014年1月28日 星期二

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

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卻發現錯誤?


錯誤訊息:
 
 
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 ..............