I'm migrating ASP.NET WebForm 2.0 website from Windows Server 2003 (IIS 6) to Windows Server 2012R2 (IIS 8.5).
The website uses Windows Authentication for internal users.
In IIS 6, Windows Authentication works perfectly.
In IIS 8.5, sometimes Windows Authentication works, users can see the site but sometimes, Windows Authentication doesn't work at all, users see 404 Error ("The webpage cannot be found" error is displayed).
I use Fiddler to watch traffic to the site:
Whenever Windows Authentication works, I see web requests have Authorization header as below: Authorization: Negotiate TlRMTVNTUAADAAAAGAAYAIAAA………………. (650 characters total)
Whenever Windows Authentication DOESN'T work, I see web requests either have no Authorization header or have Authorization header as below: Authorization: Negotiate TlRMTVNTUAABAAAAl4II4gAAAAAAAAAAAAAAAAAAAAAGAbEdAAAADw== (80 characters total)
Can you advise how to fix this issue? How to make Windows Authentication works consistently in IIS 8.5.
I also notice there are 2 providers in Windows Authentication setting in IIS: - Negotiate - NTML
I've reordered these providers but still having the same issue.