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

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

    In my case, it was something else.

    When I loaded the solution in a new version of Visual Studio, VS apparently created a new project-specific applicationhost.config file:

    MySolutionDir\.vs\config\applicationhost.config

    It started using the settings from the new config, instead of my already customized global IIS Express settings. (\Users\%USER%\Documents\IISExpress\config\applicationhost.config)

    In my case this was the setting that needed to be set. Of course it could be something else for you:

提交回复
热议问题