ASP.Net Response Filter Clashing with SharePoint 2010 Publishing Site Defaults

Posted by Jason Weber on Stack Overflow See other posts from Stack Overflow or by Jason Weber
Published on 2010-03-19T02:20:06Z Indexed on 2010/04/03 16:33 UTC
Read the original article Hit count: 382

Hello everyone,

I'm debugging an HttpModule with an ASP.NET response filter. This dynamically rewrites portions of rendered SharePoint WCM pages. The publishing pages render fine in SP2007 on both Server 2003 and Server 2008. However the equivalent pages fail to render in SP2010 B2 on Server 2008 R2 / IIS7. The following error is returned by ASP.NET:

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.

This error is consistent with KB #2014472. However:

  1. Caching is disabled for anonymous & authenticated access at the site collection level
  2. There do not appear to be any Substitution controls on either the master or layout page
  3. The IIS 7 settings are all stock default

This is happening e.g. on /pages/default.aspx. It seems likely I'm missing something cache related...but what?

© Stack Overflow or respective owner

Related posts about sharepoint2010

Related posts about iis7