Config Error: This configuration section cannot be used at this path

后端 未结 30 2430
死守一世寂寞
死守一世寂寞 2020-11-22 07:01

I\'ve encountered an error deploying a site to a server. When trying to load the home page, or access authentication on the new site in IIS, I get the error:

30条回答
  •  无人共我
    2020-11-22 07:26

    You need to unlock handlers. This can be done using following cmd command:

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

    Maybe another info for people that are getting this error on IIS 8, in my case was on Microsoft Server 2012 platform. I had spend couple of hours battling with other errors that bubbled up after executing appcmd. In the end I was able to fix it by removing Web Server Role and installing it again.

提交回复
热议问题