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

后端 未结 30 2413
死守一世寂寞
死守一世寂寞 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:20

    Browse to “C:\Windows\System32\inetsrv\config” (you will need administrator rights here) Open applicationHost.config

    Note: In IISExpress and Visual Studio 2015 the applicationHost.config is stored in $(solutionDir).vs\config\applicationhost.config

    Find the section that showed up in the “config source” part of the error message page. For me this has typically been “modules” or “handlers”

    Change the overrideModeDefault attribute to be Allow

    So the whole line now looks like:

    After saving the file, the page loaded up fine in my browser.

    Warning: Editing applicationHost.config on 64-bit Windows

提交回复
热议问题