Iis 配置文件错误-无法通过本地主机访问网站

Iis 配置文件错误-无法通过本地主机访问网站,iis,localhost,config,Iis,Localhost,Config,我正试图通过以下地址访问我的网站: http://localhost:8090/passcode 但是,我收到此错误: HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. Config Error This configuration secti

我正试图通过以下地址访问我的网站:

http://localhost:8090/passcode
但是,我收到此错误:

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

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 File    \\?\E:\WK\Useful info\Password Portal\PassCore\web.config



Config Source:

   36:      
   37:   <handlers>
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
<add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
<add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
  </handlers>
HTTP错误500.19-内部服务器错误
无法访问请求的页面,因为该页面的相关配置数据无效。
配置错误
无法在此路径上使用此配置节。当节在父级锁定时会发生这种情况。锁定在默认情况下(overrideModeDefault=“Deny”),或者由带有overrideMode=“Deny”或旧版allowOverride=“false”的位置标记显式设置。
配置文件\\?\E:\WK\usiver info\Password Portal\PassCore\web.Config
配置源:
36:      
37:   

有谁能向我解释一下这行代码有什么问题,或者错误是由其他原因造成的。

可以简单到确保您已将正确的角色和功能添加到服务器。我得到了这个,并添加了.NET4.5等功能,它处理了这条消息。如果已执行此操作且错误仍然存在,则可能需要确保web.config可以覆盖这些设置,因为默认情况下,我认为不允许站点覆盖这些设置