【问题标题】:Resolving "this operation requires IIS integration pipeline mode" in ASP.net MVC2解决 ASP.net MVC2 中“此操作需要 IIS 集成管道模式”
【发布时间】:2011-02-15 22:21:22
【问题描述】:

我正在开发一个 ASP.net MVC2 应用程序,并实现导出到 .csv 控制器操作,但是当我添加标题以强制下载时,调试器中出现以下内容:

“此操作需要IIS集成管道模式”

我使用 Google 搜索了多个网站,但尚未解决此问题。我正在使用:

  • IIS 7.5
  • Windows 7 Ultimate 和
  • .Net Framework 4.0,

ASP.net 的应用程序池配置为集成管道模式,因为我不明白这个问题。

社区可以帮助我解决这个问题并向我解释错误吗?

【问题讨论】:

    标签: .net asp.net-mvc-2 download iis-7.5 notimplementedexception


    【解决方案1】:

    http://devproj20.blogspot.com/2008/02/this-operation-requires-iis-integrated.html

    “您可以通过以这种方式添加标题来解决此问题:”

    Response.AddHeader("myHeader", "someValue");

    【讨论】:

    • @TheMuffinMan 根据reference,它调用AppendHeader。这将检查 workerrequest 并可能根据托管环境适用的标头添加分支。
    【解决方案2】:

    转到项目项目属性(右键单击项目)并转到左侧的 Web 选项卡并检查使用本地 IIS Web 服务器的属性。 enter image description here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-09-16
      • 2023-03-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多