How many of you have faced this hosting issue when you do everything what it takes to run the site with windows authentication but still you are getting the same error again and again?
If you think you also have faced the same issue and you tired of reading MSDN KBs for it and still have not found the issue (If KB has solved the issue, well and good, if not you can try this trick),Please Read below
Typical scenario
In typical hosting with IIS, i did every possible things like enabling windows authentication, changing it in web.config, configuring connection pool, authorization rules, it asks me for window authentication login and despite of entering correct credentials it always fails and keeps on asking for login, and when pressed cancel it gives 401.1 with 0xc000006d error code
You need to change the Loop Back Check in registry so that it allows the host names which you are giving in url are allowed and authorized, Following are the steps
- The solution is some registry hacking to avoid loopback check:
- Using regedit, navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0
- Add a new Multi-String Value to MSV1_0 and name it BackConnectionHostNames
- Add the host names you wish to use. In my case, "test.mytestsite.com".
- Restart the IIS.
I got this important information from http://falunbyday.blogspot.in/2013/02/windows-authentication-fails-on-local.html,It was life saver
Thanks, Enjoy
Thanks, this saved my day too :)
ReplyDeleteHappy to hear that :) !!! Thanks
Delete