“此操作需要IIS集成管道模式。”在VS2012中调试

时间:2014-04-24 13:59:35

标签: visual-studio-2012

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

4 个答案:

答案 0 :(得分:5)

我有完全相同的问题。我们团队中的一些开发人员拥有VS2013和一些VS2012。

要解决此问题,请执行以下操作:

进入项目属性。 选择Web选项卡。 选择“使用本地IIS Web服务器” 选中“使用IIS Express”

这解决了我们的问题。希望它有所帮助。

答案 1 :(得分:1)

在2012年运行2013年创建的网络应用程序时,这似乎是一个问题。我能够让它发挥作用的唯一方法就是回到2013年。

答案 2 :(得分:1)

如果您使用的是Visual Studio 2012,请按照以下步骤进行操作

  1. 转到解决方案资源管理器

  2. 右键单击项目

  3. 点击“使用IIS Express”

答案 3 :(得分:0)

我试着这个:

1- ISS应用程序池PipelineMode更改集成模式

2-检查立即启动应用程序池

3- ASP.NET模拟中的身份验证已禁用

多数民众赞成。