gpt4 book ai didi

asp.net - HTTP 错误 500.19 和错误代码 : 0x80070021 while configuring IIS server

转载 作者:行者123 更新时间:2023-12-04 00:11:04 24 4
gpt4 key购买 nike

我正在尝试配置 IIS 服务器,但出现此错误。

HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.



详细错误信息:

模块 IIS Web 核心

通知 开始请求

经办人尚未确定

错误代码 0x80070021

配置错误 此配置部分不能在此路径中使用。当该部分锁定在父级别时会发生这种情况。锁定是默认情况下 (overrideModeDefault="Deny") 或由具有 overrideMode="Deny"或旧 allowOverride="false"的位置标记显式设置的。

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

Config Source:


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

最佳答案

要解锁模块设置的 IIS 配置,请在提升的 PowerShell 上下文中输入以下命令。

Import-Module WebAdministration

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

关于asp.net - HTTP 错误 500.19 和错误代码 : 0x80070021 while configuring IIS server,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35320024/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com