Reputation: 1717
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 Identity, Owin, etc. and locally it works fine.
Then I uploaded it to a Windows Server 2008 using IIS 7.5 (Integrated Pipeline) Host and I get:
This operation requires IIS integrated pipeline mode.
Exception Details:
System.PlatformNotSupportedException: This operation requires IIS integrated pipeline mode.Stack Trace:
[PlatformNotSupportedException: This operation requires IIS integrated pipeline mode.] System.Web.HttpResponse.get_Headers() +9687046 System.Web.HttpResponseWrapper.get_Headers() +9 Microsoft.Owin.Host.SystemWeb.OwinCallContext.CreateEnvironment() +309 Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContext.GetInitialEnvironment(HttpApplication application) +246 Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContext.PrepareInitialContext(HttpApplication application) +15 Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContextStage.BeginEvent(Object sender, EventArgs e, AsyncCallback cb, Object extradata) +265 System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +285 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
I am unable to find anything except for directing the reader to change the pipeline from classic mode to integrated mode, which I already did with no success.
What can I do to fix the problem? Does "Microsoft.Owin.Host.SystemWeb" not like IIS 7.5 or something?
Upvotes: 68
Views: 153953
Reputation: 53
Press F4 in your Project for the property window. Then change the pipeline mode
Upvotes: 2
Reputation: 1717
This was a strange problem since my hosts IIS shouldn't complain that it requires integrated pipeline mode when it already is in that mode as I stated in my question as:
I have searched a lot and unable to find anything except for directing the reader to change the pipeline from classic mode to integrated mode that which I already did with no luck..
Using Levi's directions, I put and <%: System.Web.Hosting.HttpRuntime.UsingIntegratedPipeline %>
* on an empty aspx page and told my host what going on and asked them to fix the problem and confirm the problem using the page I uploaded... I checked very often if something has changed at the state of the page and I can see that they struggled 3-4 hours to solve it... <%: System.Web.Hosting.HttpRuntime.IISVersion %>
When I asked what they have done to solve the problem, their answer was kind of 'classified', since they said:
Our team made the required changes on the server
The problem was all with my host.
* Update: As Ben stated in the comments
<%: System.Web.Hosting.HttpRuntime.UsingIntegratedPipeline %>
and<%: System.Web.Hosting.HttpRuntime.IISVersion %>
are no longer valid and they are now:
Upvotes: 6
Reputation: 116
This error means the application pool to which your deployed application belongs is not in Integrated mode.
Upvotes: 9
Reputation: 721
I was having the same issue and I solved it doing the following:
In Visual Studio, select "Project properties".
Select the "Web" Tab.
Select "Use Local IIS Web server".
Check "Use IIS Express"
Upvotes: 32
Reputation: 8552
GitHub solution solved the problem for me by adding
Upvotes: 2
Reputation: 355
For Visual Studio 2012 while debugging that error accrued
Website Menu -> Use IIS Express did it for me
Upvotes: 4
Reputation: 119
Those who are using VS2012
Goto project > Properties > Web
Check Use Local IIS Web server
Check Use IIS Express
Project Url http://localhost:PORT/
Upvotes: 3
Reputation: 1093
I resolved this problem by following steps:
may be it help you to.
Upvotes: 4
Reputation: 3229
Your Application Pool is in classic mode but your Application need integrated mode to fire. change it to Integrated Mode:
Open IIS Manager
Application Pool
Select pool that your app are run in it
In right panel select Basic Setting
Manage Pipeline Mode change to Integrated
Upvotes: 66
Reputation: 3460
The way to fix this issue is not within IIS. I was trying to run my application within IIS Express within Visual Studio. I searched the web and some articles were saying to add an identity tag to the system.web tag. This is not the correct way.
The way I was able to solve this issue was to click on the project file and go to properties. Under managed pipeline, I changed the property value from classic to integrated.
This solved my issue.
Upvotes: 7