【问题标题】:Config File Error - Cannot access website via localhost配置文件错误 - 无法通过 localhost 访问网站
【发布时间】:2014-10-08 05:39:07
【问题描述】:

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

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>

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

【问题讨论】:

    标签: iis localhost config


    【解决方案1】:

    可以简单到确保您已将正确的角色和功能添加到您的服务器。我得到了这个并添加了 .NET 4.5 功能等,它处理了这个消息。如果您已经这样做并且错误仍然存​​在,您可能需要确保您的 web.config 可以覆盖这些设置,因为我认为默认设置是不允许网站覆盖这些设置。

    【讨论】:

      猜你喜欢
      • 2013-04-03
      • 1970-01-01
      • 1970-01-01
      • 2016-07-06
      • 2018-07-09
      • 2014-09-06
      • 2020-05-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多