I for days thought my IIS 8 on Windows 2012 R2 wasn't configured for Windows Authentication. For days I uploaded my VS 2015 Website to my IIS 8 server and I cannot get the Windows.Indentity or the HTTP equivalent to display the domain user name. I have been configuring authenticate users for 5 years on IIS 5,6,7 with no problem. I can't even get the website to display a Windows Login box if I remove all authorized users.
So to just prove to myself windows authentication was working on server I uploaded one of my old Visual Studio 2013 Web Applications to the same server using a different Virtual name and I'll be damn, there it is all my authenticated user information is displayed. I can even get the Windows Login box to appear.
The difference is the VS 2015 uses Framework 4.5 and VS 2013 uses Framework 4.0. I used .NET v4.5, "Integrate" with ApplicationPoolIdentity. I've tried every combination, No Anonymous, with Windows Auth,. When I try Anonynmous disable it attempts to redirect me to /Accounts/Login for some reason. This definitely has to do with something internally in the Framework 4.5 that treats authentication differently, because I think Microsoft rolled out there version of ASP.Net.Identity, which I think is preventing normal Windows Authentication from working like in the past.
I've run out of ideas. I'm tempted to try and move application down to VS 2013 it's just that a lot of the feature is VS 2015 dealing with master pages are not downward compatible.
Help!!!!!!
Thanks
Derek
805-791-0117