简体   繁体   English

配置IIS服务器时出现HTTP错误500.19和错误代码:0x80070021

[英]HTTP Error 500.19 and error code : 0x80070021 while configuring IIS server

I am trying to configure IIS server but I get this error. 我正在尝试配置IIS服务器,但出现此错误。

HTTP Error 500.19 - Internal Server Error HTTP错误500.19-内部服务器错误

The requested page cannot be accessed because the related configuration data for the page is invalid. 无法访问请求的页面,因为该页面的相关配置数据无效。

Detailed Error Information: 详细错误信息:

Module IIS Web Core IIS Web核心模块

Notification BeginRequest 通知 BeginRequest

Handler Not yet determined 处理程序尚未确定

Error Code 0x80070021 错误代码 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". 锁定默认情况下是(overrideModeDefault =“ Deny”),或者是由一个带有overlayMode =“ Deny”或旧版allowOverride =“ false”的位置标记显式设置的。

Config File \\?\\C:\\inetpub\\wwwroot\\LinedataHandyPartner\\web.config 配置文件 \\?\\ C:\\ inetpub \\ wwwroot \\ LinedataHandyPartner \\ web.config

Config Source: 配置源:

   52:     </handlers>
   53:     <modules runAllManagedModulesForAllRequests="true">
   54:       <remove name="UrlRoutingModule-4.0" />

To unlock IIS configuration for module settings, enter the following commands in an elevated PowerShell context. 要为模块设置解锁IIS配置,请在提升的PowerShell上下文中输入以下命令。

Import-Module WebAdministration

Set-WebConfiguration `
  -Filter "/System.webServer/modules" `
  -Metadata overrideMode `
  -Value Allow `
  -PSPath "IIS:\"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM