ebhh2001
ebhh2001

Reputation: 2116

Exception in ASP.NET web application after switching from VS 2013 to VS 2015

I have a rather old ASP.NET application targeting .NET Framework 4.5.2. The application worked fine on my development machine while I was using Visual Studio 2013. After switching to VS 2015 with Update 3, I started getting the following exception:

[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.] System.Web.HttpWriter.GetIntegratedSnapshot(Boolean& 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 step, Boolean& completedSynchronously) +92

Upvotes: 0

Views: 242

Answers (2)

Harold Javier
Harold Javier

Reputation: 887

Try to disable the Browser Link.

From Visual Studio, in the Browser Link dropdown menu, uncheck Enable Browser Link.

You can also do it in the Web.config file by simply adding

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

Upvotes: 1

ebhh2001
ebhh2001

Reputation: 2116

The solution was actually quite simple based on this post. BrowserLink is on by default in VS 2015. After turning BrowserLink off using a menu in the VS UI, the problem went away.

Upvotes: 0

Related Questions