I am using windows authentication for my intranet application which was developed in ASP.NET MVC 4.0.

In Web.config file, i set authentication mode="Windows" and in IIS Enabled Windows Authentication and disabled Ananymous and impersonation is disabled.

Everythng working fine in local, but when i deployed it to windows server 2012 using IIS 8.5 it was prompting credentials popup for first time page load. even if i enter correct credentials its not worked. then i clicked cancel for 3 to 4 times page loaded without issues. If i close the browser and reloads the same url its not asked for credentials. after sometime used the same url this time its asked for credentials.

This issue is happening randomly and am able to reproduce the issue when i refresh the page continuously for 10-15 times.am using IE 11 and google chrome browsers.in both browsers same issue.

As per my requirement it should not display the popup for credentials as it is a intranet application.

Please help me on this, i was trying to fix from last two weeks but no solution yet.