I have a web application being developed on Windows 8.1, .NET 4.5.1, IIS 8.5 (under Integrated AppPool), Visual Studio 2013 over the default template that includes ASP.NET I
Press F4 in your Project for the property window. Then change the pipeline mode
This error means the application pool to which your deployed application belongs is not in Integrated mode.
Try using Response.AddHeader
instead of Response.Headers.Add()
I resolved this problem by following steps:
may be it help you to.
Those who are using VS2012
Goto project > Properties > Web
Check Use Local IIS Web server
Check Use IIS Express
Project Url http://localhost:PORT/