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

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

    <section name="modules" allowDefinition="MachineToApplication" overrideModeDefault="Allow" />
    

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

    Warning: Editing applicationHost.config on 64-bit Windows

    0 讨论(0)
  • 2020-11-22 07:21

    For Windows Server 2008 and IIS 7, the procedure is similar. please refer to this: http://msdn.microsoft.com/en-us/library/vstudio/bb763178(v=vs.100).aspx

    in add role service, u will see "Application Development Features"

    Check (enable) the features. I checked all.

    0 讨论(0)
  • 2020-11-22 07:21

    I had the same issue.

    • Resolved it by enabling Application Server feature. Restarted iis after that.
    0 讨论(0)
  • 2020-11-22 07:21

    The following worked for me:

    Go to project properties. Web tab. Set to Local IIS and set specific page.

    I have Windows 7 and Visual Studio 2013.

    0 讨论(0)
  • 2020-11-22 07:22

    This Did the trick for me, for IIS 8 Windows server 2012 R2

    Go to "Turn on Features"

    Then go to all default setting , Next, Next, Next etc..

    Then, select as shown below,

    Then reset IIS (optional) but do it safer side.

    This is an additional solution as its a generic problem everyone have different of problem and thus different solution. Cheers!

    0 讨论(0)
  • 2020-11-22 07:24

    This worked for me Also in IIS 8 you can solve this problem by changing the server to IIS Express. Goto debug->Properties In the Web select the server as IIS Express from the dropdown and then rebuild the solution

    0 讨论(0)
提交回复
热议问题