I am trying to use Windows Authentication in a VS 2013, MVC 4 project that was originally done in VS2011.
It worked fine on VS2011, but when I moved to VS2013 on the same machine, using IIS 7 problems ensued.
I have windows authentication set in web.config (and anonymous authentication disabled):
<security>
<authentication>
<anonymousAuthentication enabled="false"/>
<windowsAuthentication enabled="true"/>
</authentication>
</security>
However, these attributes are grayed (greyed) out in the "f4" properties window for the VS2013 solution.
When I debug the program, I get the following error:
HTTP Error 500.19 - Internal Server Error with Error Code 0x80070021
I have tried editing C:\Windows\System32\inetsrv\config applicationHost.config per similar posts in forums, and restarting the services, but the problem still persists.
Does anyone know how to please solve this?
Thanks in advance.