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:
答案 0 :(得分:1)
我能够通过在我的解决方案的.vs文件夹中修改applicationhost.config文件并将指定的元素标记为允许覆盖来解决此问题。