Asp.net is deployed in IIS and reports an error, this configuration section cannot be used in this path

Problem Description

IIS deployment, cannot use this configuration section in this path. This can happen if the section is locked at the parent level.
insert image description here

Solution

cmd command line

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

insert image description here
Visit the iis address again to load the page normally

Reference: https://blog.csdn.net/u010164507/article/details/99696223

Guess you like

Origin blog.csdn.net/weixin_41891519/article/details/119137824