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