This is something I did not manage to find from the internet.
We have a web application that uses SignalR that requires Owin that needs IIS Integrated Pipeline mode. When I am running our web application on Cassini Dev Server I get following error:
[PlatformNotSupportedException: This operation requires IIS integrated pipeline mode.]
System.Web.HttpResponse.get_Headers() +214
Microsoft.Owin.Host.SystemWeb.CallHeaders.AspNetResponseHeaders..ctor(HttpResponseBase response) +37
Microsoft.Owin.Host.SystemWeb.OwinCallContext.CreateEnvironment() +492
Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContext.GetInitialEnvironment(HttpApplication application) +263
Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContext.PrepareInitialContext(HttpApplication application) +19
Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContextStage.BeginEvent(Object sender, EventArgs e, AsyncCallback cb, Object extradata) +462
System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +556
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288
Running IIS Express and other alternatives in automatic tests is PITA.
CassiniDev does not support Integrated Pipeline Mode. If you're coming across this error you may want to switch to IISExpress. I did that by using the solution posted here.