IIS错误 - HTTP错误500.24 - 内部服务器错误

时间:2012-09-08 07:32:24

标签: asp.net iis

我最近在Windows 7 PC上安装了IIS,当我打开http://localhost/时显示

********************ERROR**********************  
HTTP Error 500.24 - Internal Server Error
An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.  
********************ERROR**********************

********************Detailed Error Information**************  
Module:  ConfigurationValidationModule  
Notification:  BeginRequest  
Handler:  StaticFile  
Error Code:  0x80070032  
Requested URL  :http://localhost:80/  
Physical Path  :C:\inetpub\wwwroot  
Logon Method  :Not yet determined  
Logon User  :Not yet determined  
************************

1 个答案:

答案 0 :(得分:6)

我不确定您正在运行哪些代码/配置,但您可能需要更改网站的应用池以使用经典而不是集成模式

  

经典模式是IIS仅直接使用ISAPI扩展和ISAPI过滤器的地方...集成模式通过IIS的统一管道处理所有请求,并通过同一管道与ASP.NET紧密集成。

  • 你可能遇到麻烦的地方:
  

某些遗留代码可能要求您以经典模式运行才能正常执行。为了充分利用IIS,如果您的应用程序在Integrated中引发错误但在Classic中运行正常,我们强烈建议您查看代码。