Post cache substitution error running locally

痴心易碎 提交于 2020-01-25 00:33:31

问题


I have created a new Lemoon site on Azure Web Sites and copied it local and attempted to run it.

The database connection is still pointing to the Azure SQL database, so that should be fine.

I'm getting an error though that says...

"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."

Any ideas on how to resolve this?


回答1:


Most probably you have an IIS-module that modifies the response in some way. That in combination with the use of the ASP.NET Output Cache Substitution Feature causes the error you refer to.

The solution is to either disable the IIS-module that modifies the response or to remove the cache substitution from the master page file that ships with the Lemoon project template.

Remove the line below from the file Site.Master:

<!-- generated at <%= DateTime.Now.ToString("s") %> / <% Response.WriteSubstitution(RenderInfo); %> -->


来源:https://stackoverflow.com/questions/17574702/post-cache-substitution-error-running-locally

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!