Website will not start in Visual Studio 2015 Enterprise, but works fine in 2013 Pro

时间:2015-10-30 23:19:13

标签: iis visual-studio-2013 visual-studio-2015 iis-express

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:

1 个答案:

答案 0 :(得分:1)

我能够通过在我的解决方案的.vs文件夹中修改applicationhost.config文件并将指定的元素标记为允许覆盖来解决此问题。