asp.net部署在IIS报错,不能在此路径中使用此配置节

问题描述

IIS部署,不能在此路径中使用此配置节。如果在父级别上锁定了该节,便会出现这种情况。
在这里插入图片描述

解决方法

CMD命令行

%windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/handlers
%windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/modules

在这里插入图片描述
再次访问iis地址就可以正常加载页面了

参考:https://blog.csdn.net/u010164507/article/details/99696223

猜你喜欢

转载自blog.csdn.net/weixin_41891519/article/details/119137824