I have an ASP.NET MVC 5 app and am trying to enable Windows Authentication. The development machine is Windows Server 2008 R2, IIS Express 8.0, Visual Studio 2013 & .NET Framework 4.5.
I get a 404 Not Found error when ever I browse the app. The app enters a redirect loop with http://localhost:63455/Account/Login?ReturnUrl=%2F. Eventually the ReturnUrl
ends up being very large as it gets appended to with each redirect.
My web.config looks like this:
<system.web>
<authentication mode="Windows"/>
</system.web>
I've tried setting the Anonymous Authentication and Windows Authentication settings on the Development Server properties.
I've also tried adding the following appSettings
:
<add key="autoFormsAuthentication" value="false"/>
<add key="enableSimpleMembership" value="false"/>
How can I get Windows Authentication working properly?