1、以管理员运行 CMD
2、依次执行一下两句
%windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/handlers
%windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/modules
参考网址:
1、https://www.codercto.com/a/18530.html
2、https://www.cnblogs.com/jhlong/p/6277247.html
运行命令行
C:\windows\system32\inetsrv\appcmd unlock config -section:system.webServer/handlers
其中的 handlers 是错误信息中红字显示的节点名称。
如果modules也被锁定,可以运行
C:\windows\system32\inetsrv\appcmd unlock config -section:system.webServer/modules