【发布时间】:2023-03-10 01:15:01
【问题描述】:
Visual Studio 2013 使用 ASP.NET MVC、Owin、WebAPI 创建了 Web App。 在 VS 2013 中一切运行良好。 但是,当我在 VS 2012 中调试时,出现错误:“此操作需要 IIS 集成管道模式。”
我不知道如何更改 Dev 实例的 IIS 设置。因此,其他类似的解决方案不适用。
"This operation requires IIS integrated pipeline mode."
堆栈跟踪:
[PlatformNotSupportedException: This operation requires IIS integrated pipeline mode.]
System.Web.HttpResponse.get_Headers() +9743542
System.Web.HttpResponseWrapper.get_Headers() +9
Microsoft.Owin.Host.SystemWeb.CallHeaders.AspNetResponseHeaders..ctor(HttpResponseBase response) +72
Microsoft.Owin.Host.SystemWeb.OwinCallContext.CreateEnvironment() +434
Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContext.GetInitialEnvironment(HttpApplication application) +303
Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContext.PrepareInitialContext(HttpApplication application) +65
Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContextStage.BeginEvent( Object sender, EventArgs e, AsyncCallback cb, Object extradata) +622
System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +285
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
【问题讨论】: