“此操作需要 IIS 集成管道模式." [英] "This operation requires IIS integrated pipeline mode."

查看:37
本文介绍了“此操作需要 IIS 集成管道模式."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 Web 应用程序正在 Windows 8.1、.NET 4.5.1、IIS 8.5(在 Integrated AppPool 下)、Visual Studio 2013 上开发,默认模板包括 ASP.NET Identity、Owin 等,并且在本地运行很好.

I have a web application being developed on Windows 8.1, .NET 4.5.1, IIS 8.5 (under Integrated AppPool), Visual Studio 2013 over the default template that includes ASP.NET Identity, Owin, etc. and locally it works fine.

然后我使用 IIS 7.5(集成管道)主机将它上传到 Windows Server 2008,我得到:

Then I uploaded it to a Windows Server 2008 using IIS 7.5 (Integrated Pipeline) Host and I get:

异常详情:
System.PlatformNotSupportedException: 此操作需要 IIS 集成管道模式.

This operation requires IIS integrated pipeline mode.

Exception Details:
System.PlatformNotSupportedException: This operation requires IIS integrated pipeline mode.

堆栈跟踪:

[PlatformNotSupportedException: This operation requires IIS integrated pipeline mode.]
  System.Web.HttpResponse.get_Headers() +9687046
  System.Web.HttpResponseWrapper.get_Headers() +9
  Microsoft.Owin.Host.SystemWeb.OwinCallContext.CreateEnvironment() +309
  Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContext.GetInitialEnvironment(HttpApplication application) +246
  Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContext.PrepareInitialContext(HttpApplication application) +15
  Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContextStage.BeginEvent(Object sender, EventArgs e, AsyncCallback cb, Object extradata) +265
  System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +285
  System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

除了指导读者将管道从经典模式更改为集成模式之外,我找不到任何其他内容,我已经这样做了,但没有成功.

I am unable to find anything except for directing the reader to change the pipeline from classic mode to integrated mode, which I already did with no success.

我该怎么做才能解决问题?Microsoft.Owin.Host.SystemWeb"不像 IIS 7.5 之类的?

What can I do to fix the problem? Does "Microsoft.Owin.Host.SystemWeb" not like IIS 7.5 or something?

推荐答案

这是一个奇怪的问题,因为我的主机 IIS 不应该抱怨它需要集成管道模式,当它已经处于该模式时,正如我在我的问题中所述:

This was a strange problem since my hosts IIS shouldn't complain that it requires integrated pipeline mode when it already is in that mode as I stated in my question as:

我搜索了很多东西,除了指导读者将管道从经典模式更改为集成模式之外,什么也找不到,我已经没有运气了..

I have searched a lot and unable to find anything except for directing the reader to change the pipeline from classic mode to integrated mode that which I already did with no luck..

使用 Levi's 的指示,我把 <%: System.Web.Hosting.HttpRuntime.UsingIntegratedPipeline %><%: System.Web.Hosting.HttpRuntime.IISVersion %>* 在一个空的 aspx 页面上并告诉我的主人发生了什么,并要求他们解决问题并使用我上传的页面确认问题......我经常检查页面状态是否发生变化,我可以看到他们挣扎了 3-4几个小时来解决它...

Using Levi's directions, I put <%: System.Web.Hosting.HttpRuntime.UsingIntegratedPipeline %> and <%: System.Web.Hosting.HttpRuntime.IISVersion %>* on an empty aspx page and told my host what going on and asked them to fix the problem and confirm the problem using the page I uploaded... I checked very often if something has changed at the state of the page and I can see that they struggled 3-4 hours to solve it...

当我问他们为解决问题做了什么时,他们的回答有点机密",因为他们说:

When I asked what they have done to solve the problem, their answer was kind of 'classified', since they said:

我们的团队在服务器上进行了必要的更改

Our team made the required changes on the server

问题出在我的主人身上.

The problem was all with my host.

* 更新:正如 Ben 在评论中所述

* Update: As Ben stated in the comments

  1. <%: System.Web.Hosting.HttpRuntime.UsingIntegratedPipeline %>
  2. <%: System.Web.Hosting.HttpRuntime.IISVersion %>

不再有效,现在:

  1. <代码><%: System.Web.HttpRuntime.UsingIntegratedPipeline %>
  2. <代码><%: System.Web.HttpRuntime.IISVersion %>

这篇关于“此操作需要 IIS 集成管道模式."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆