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

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

    To fix this open up the IIS Express applicationhost.config. This file is stored at C:\Users[your user name]\Documents\IISExpress\config\applicationhost.config

    Update for VS2015+: config file location is $(solutionDir).vs\config\applicationhost.config

    Look for the following lines

    Change those lines to

    Save it and refresh Asp.net Page.

提交回复
热议问题