I'm getting this error when trying to run unit tests against my ASP.NET MVC project using a project called MvcIntegrationTestFramework in Visual Studio 2015. As I've searched around most of the solutions suggest switching to use IIS Express. But I'm already using IIS Express. I could also set up IIS but I'd rather not since multiple developers would have to do the same in their environments.
Other people are suggesting that modifying the Response.Headers collection directly could be causing this error, but I'm not seeing any code in the project that could be doing that.
Is there anything else you can think of that I might be overlooking that could cause this error?
Here is the full error and stack trace...
[PlatformNotSupportedException: This operation requires IIS integrated pipeline mode.] System.Web.HttpResponse.get_Headers() +242
Microsoft.Owin.Host.SystemWeb.OwinCallContext.CreateEnvironment() +532 Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContext.GetInitialEnvironment(HttpApplication application) +372
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) +354
System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +673 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +146