我在 Windows 8.1、.NET 4.5.1、IIS 8.5(在 Integrated AppPool 下)、Visual Studio 2013 上开发了一个 Web 应用程序,默认模板包括 ASP.NET Identity、Owin 等,并且在本地运行良好。
然后我使用 IIS 7.5(集成管道)主机将它上传到 Windows Server 2008,我得到:
此操作需要 IIS 集成管道模式。
异常详细信息:
System.PlatformNotSupportedException:此操作需要 IIS 集成管道模式。堆栈跟踪:
[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
除了指导读者将管道从经典模式更改为集成模式外,我找不到任何东西,我已经这样做了,但没有成功。
我能做些什么来解决这个问题?“Microsoft.Owin.Host.SystemWeb”不喜欢 IIS 7.5 吗?