IIS 7.5和ASP .NET 2.0

abj*_*hat 16 asp.net asp.net-2.0 iis-7.5

IIS 7.5是否存在任何已知问题?当我尝试浏览/启动/查看网站上的任何页面时,我收到以下错误.

HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration
 data for the page is invalid.

Module  IIS Web Core
Notification    BeginRequest
Handler Not yet determined
Error Code  0x80070021
Config Error    This configuration section cannot be used at this path. 
 This happens when the section is locked at a parent level. Locking is either by
default (overrideModeDefault="Deny"), or set explicitly by a location tag with 
  overrideMode="Deny" or the legacy allowOverride="false". 

Config Source
97:         </modules>
98:         <handlers>
99:             <remove name="WebServiceHandlerFactory-Integrated"/>
Run Code Online (Sandbox Code Playgroud)

The*_*ire 18

有一个类似的问题,最终找到这篇文章使用:http: //support.microsoft.com/kb/942055

基本上applicationHost.config锁定了处理程序部分:是

<section name="handlers" overrideModeDefault="Deny" />
Run Code Online (Sandbox Code Playgroud)

我改成了

<section name="handlers" overrideModeDefault="Allow" />
Run Code Online (Sandbox Code Playgroud)

它起作用了.

还值得检查所有asp.net角色是否已安装,请参阅链接文本.

  • 是的,ASP.NET使用配置文件的层次结构,从最接近请求的页面的文件夹开始,一直到应用程序根目录,然后进入.NET Framework Config文件夹 - 那里有两个或三个一起工作,下来到machine.config.元素可以锁定在任何这些级别,请参阅:http://msdn.microsoft.com/en-us/library/system.configuration.sectioninformation.allowoverride.aspx和http://msdn.microsoft.com/en -us /库/ system.configuration.sectioninformation.overridemodedefault.aspx (3认同)

小智 5

解决了我在Windows 7 64位IIS 7上的问题.