加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net – “此操作需要IIS集成管道模式

发布时间:2020-12-15 19:11:28 所属栏目:asp.Net 来源:网络整理
导读:我有一个Web应用程序正在开发在Windows 8.1,.net 4.5.1,IIS 8.5(在集成AppPool下),Visual Studio 2013包括asp.net身份,Owin等默认模板和本地工作正常。 然后我上传到Windows服务器2008 IIS 7.5(集成管道)主机和我得到: This operation requires IIS int
我有一个Web应用程序正在开发在Windows 8.1,.net 4.5.1,IIS 8.5(在集成AppPool下),Visual Studio 2013包括asp.net身份,Owin等默认模板和本地工作正常。

然后我上传到Windows服务器2008& IIS 7.5(集成管道)主机和我得到:

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

我搜索了很多,无法找到任何东西,除了指示读者改变管道从经典模式到集成模式,我已经做了没有运气。

我可以做什么来解决这个问题? “Microsoft.Owin.Host.SystemWeb”不像IIS 7.5,或服务器2008或我:)?

解决方法

对于通过搜索此错误到达这里的任何人,请尝试使用Response.AddHeader而不是Response.Headers.Add()

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读