1

I'm having a problem running a website from VS 2015 Enterprise, where I don't have an issue running it from VS 2013 Pro. The error I get is:

This configuration section cannot be used at this path.
This happens when the section is locked at a parent level. Locking is either by default
(overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny"
or the legacy allowOverride="false". 

Error Code: 0x80070021

Config Source:

<authentication>
<windowsAuthentication enabled="true" /> <-- this line is red
</authentication>

I have also set the machine.config values to Allow for all tags, as well as the applicationhost.

Also, when trying to run it directly from the IIS Server Manager (pointing to the same location as the source files), I get a 503 Service Unavailable.

I can provide more information if needed.

Other solutions I have tried:

Community
  • 1
  • 1
Zymus
  • 1,673
  • 1
  • 18
  • 38
  • See if [this](http://serverfault.com/questions/360438/iis-complains-about-a-locked-section-how-can-i-find-out-where-its-locked) answer helps – Taleeb Oct 31 '15 at 12:25
  • I've tried that and it didn't work. I've updated the OP with the answers I've tried so far. – Zymus Oct 31 '15 at 18:24
  • I am just guessing... but see if there are applicationhost.config file(s) at the following locations. 1. C:\Users[your user name]\Documents\IISExpress\config\. 2. In a Config folder in the solution/project directory – Taleeb Oct 31 '15 at 18:39
  • Only the one in the Documents folder existed, and everything in there was set to allow with no difference. – Zymus Nov 02 '15 at 20:22

1 Answers1

1

I was able to solve this by modifying the applicationhost.config file, within the .vs folder of my solution, and marking the specified elements to allow override.

Zymus
  • 1,673
  • 1
  • 18
  • 38