I spent waaaaay way way way too long fighting this one, so I’m saving everything I found on the issue so that I never lose it.
- Running Internet Information Services (IIS) 8.5 on my laptop.
- Set up a site with an ASP.Net MVC web application Windows Authentication.
- Browsing the site locally continually prompts for my domain username and password.
- Credentials are never accepted / I’m never authenticated.
- Cancelling the login prompt ultimately responds with 401 Unauthorized.
When accessing the site with Fiddler, IIS simply responds with 401 Unauthorized.
Solution (with original sources)
An incredibly helpful StackOverflow titled Unable to get windows authentication to work through local IIS provided the solution.
Its source was a KnowledgeBase article from Microsoft: https://support.microsoft.com/en-us/kb/896861
- Set the
registry entry to 1. For more information about how to do this, refer to article 281308 in the Microsoft Knowledge Base
- Click Start, click Run, type regedit, and then click OK.
- In Registry Editor, locate and then click the following registry key:
- Right-click MSV1_0, point to New, and then click Multi-String Value.
- Type BackConnectionHostNames, and then press ENTER.
- Right-click BackConnectionHostNames, and then click Modify.
- In the Value data box, type the host name or the host names for the sites that are on the local computer, and then click OK.
- Quit Registry Editor, and then restart the IISAdmin service. (to do this, I ran iisreset from a Powershell prompt)