【问题标题】:Deploying ASP.NET application on IIS在 IIS 上部署 ASP.NET 应用程序
【发布时间】:2011-03-16 18:11:18
【问题描述】:

我是 Web 应用程序的新手。我想在 IIS 上部署我的 Web 应用程序。但是,我收到以下错误:

HTTP Error 500.22 - Internal Server Error
An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode. Detailed Error Information
Module ConfigurationValidationModule 
Notification BeginRequest 
Handler StaticFile 
Error Code 0x80070032 
Requested URL http://localhost:80/ 
Physical Path C:\Users\Taiseer\Desktop\UBC Course(term 2)\Software Engineering\Project-Doloto\wwwroot 
Logon Method Not yet determined 
Logon User Not yet determined

任何建议都会有所帮助。您能否让我知道一步一步描述该过程的任何链接或参考。

谢谢。

【问题讨论】:

  • 你的标签上写着“IIS6”,但不是“IIS7”吗?

标签: asp.net iis-6


【解决方案1】:

要使用集成模式在 IIS 中运行您的应用程序,请将 system.web\httpHandlerssystem.web\httpModules 部分移动到 system.webServer 中,并将它们分别重命名为“handlers”和“modules”。这应该让您更接近 IIS 的有效集成模式配置。

【讨论】:

  • "Closer" 不能解决问题。请参阅您投反对票的答案,以找到可以解决问题的解决方法。
  • (并不是要否决您的答案-撤消它。)但是没有看到实际的配置文件,我不知道如何使配置有效,我只是建议两点我知道可能在配置文件中并且需要移动。
【解决方案2】:

此错误表明您的应用程序未编码为在集成管道模式下运行。

您可以通过将 AppPool 切换到经典模式来消除此错误。或者,您可以更新代码以在集成管道模式下运行。

【讨论】:

  • 没有理由继续使用经典模式。有关更多信息,请参阅我的答案。
  • @Josh M:这里没有答案......还有替代方案。
猜你喜欢
  • 1970-01-01
  • 2013-07-17
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-01-07
  • 2015-12-19
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多