"此操作需要IIS综合管道模式&QUOT。 [英] "This operation requires IIS integrated pipeline mode."

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

问题描述

我有一个Web应用程序被developped在Windows 8.1,.NET 4.5.1,IIS 8.5(下集成的应用程序池)时,Visual Studio 2013在包括asp.net身份,Owin等默认模板,并在本地工作正常

然后我上传到Windows Server 2008和放大器; IIS 7.5(综合管线)主机和我得到:


  

此操作需要IIS综合管道模式。


  
  

异常详细信息: System.PlatformNotSupportedException:此
  操作需要IIS综合管道模式。


  
  

堆栈跟踪:


  
  

[PlatformNotSupportedException:此操作需要IIS
  集成的管道模式。]
      System.Web.Htt presponse.get_Headers()9687046
      System.Web.Htt presponseWrapper.get_Headers()+9
      Microsoft.Owin.Host.SystemWeb.OwinCallContext.CreateEnvironment()309
      Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContext.GetInitialEnvironment(HttpApplication
  应用程序)246
      Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContext.$p$ppareInitialContext(HttpApplication
  应用程序)+15
      Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContextStage.BeginEvent(对象
  发件人,EventArgs的发送,CB的AsyncCallback,对象extradata)+265
      System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
  285
      System.Web.HttpApplication.ExecuteStep(IExecutionStep一步,布尔和放大器; completedSynchronously)+155


我寻觅了很多,无法找到除了引导读者从改变传统模式到,我已经没有运气确实集成模式管道东西..

我能做些什么来解决这个问题?难道Microsoft.Owin.Host.SystemWeb不喜欢IIS 7.5,或Server 2008或我:)?


解决方案

我的坏!你是对的莱克斯我必须这样做,是不是说明我在意见解决了这个问题。

这是一个奇怪的问题,因为我的主机IIS不应该抱怨,它需要集成的管道模式时,它已经在该模式下我在为问题说明:


  

我寻觅了很多,无法找到除了引导读者管道从经典模式更改为综合模式,我已经没有运气做了什么 ..


使用李维斯指示我把 <%:System.Web程序。 Hosting.HttpRuntime.UsingIntegratedPipeline%GT; <%:System.Web.Hosting.HttpRuntime.IISVersion%> 告诉我的主机是什么回事,并要求他们解决问题,用我上传的页面确认问题...我检查非常频繁,如果事情已经改变在该状态页面,我可以看到他们奋斗3-4个小时来解决它......

当我问他们做了什么来解决这个问题,他们的asnwer是那种'分类',因为他们说:


  

我们的团队所做的服务器上进行必要的更改


我笑笑过去了。所以,问题是所有我的主人。感谢所有的答案。


  

更新: 在评论说


  
  

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

  2.   
  3. <%:System.Web.Hosting.HttpRuntime.IISVersion%>

  4.   

  
  

不再有效,他们现在是:


  
  

      
  1. <%:System.Web.HttpRuntime.UsingIntegratedPipeline%>

  2.   
  3. <%:System.Web.HttpRuntime.IISVersion%>

  4.   

I have a web application being developped 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 works fine.

Then I uploaded it to a windows server 2008 & IIS 7.5 (Integrated Pipeline) Host and I get:

This operation requires IIS integrated pipeline mode.

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

Stack Trace:

[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 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..

What can I do to fix the problem? Does "Microsoft.Owin.Host.SystemWeb" not like IIS 7.5, or server 2008 or me :) ?

解决方案

My bad!, you are right Lex I must have done that instead of stating that I have solved the problem in comments..

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..

Using the Levi's directives 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 asnwer was kind of 'classified', since they said:

Our team made the required changes on the server

I smiled and passed. So the problem was all with my host. Thanks for all the answers.

Update: As Ben stated in the comments

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

are no longer valid and they are now:

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

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

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