【问题标题】:"This operation requires IIS integrated pipeline mode." debugging in VS2012“此操作需要IIS集成管道模式。” VS2012调试
【发布时间】: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

【问题讨论】:

    标签: visual-studio-2012


    【解决方案1】:

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

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

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

    这为我们解决了问题。希望对您有所帮助。

    【讨论】:

      【解决方案2】:

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

      【讨论】:

      【解决方案3】:

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

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

      2. 右键单击项目

      3. 点击“使用 IIS Express”

      【讨论】:

      • 是的,我认为这就是你需要为 asp.net 网站做的事情。对于 Web 应用程序,请使用项目的属性页。
      【解决方案4】:

      我试试这个工作:

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

      2-勾选立即启动应用程序池

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

      够了。

      【讨论】:

      • 这对我们有用!如果您已经设置了 IIS 并且不想启动 express 实例,则应使用此选项。
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-09-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多