我在Windows 8.1上开发了一个web应用程序.NET 4.5.1、IIS 8.5(在Integrated AppPool下)、Visual Studio 2013中包含ASP.NET身份、Owin等,并且在本地运行良好.
然后,我使用IIS 7.5(集成管道)主机将其上载到Windows Server 2008,得到:
此操作需要IIS集成管道模式.
Exception Details:
System.PlatformNotSupportedException: 此操作需要IIS集成管道模式.100
[PlatformNotSupportedException: 此操作需要IIS集成管道模式.] 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
除了指导读者将管道从classic 模式更改为集成模式之外,我什么也找不到,我已经这样做了,但没有成功.
我能做些什么来解决这个问题?"Microsoft.Owin.Host.SystemWeb"不像IIS 7.5或其他什么吗?