Last post Aug 16, 2016 05:56 AM by Nan Yu
Aug 14, 2016 09:40 PM|RPU|LINK
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.
<authentication mode="Windows"></authentication> <authorization> <allow users="*"></allow> <deny users="?"></deny> </authorization>
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.
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.
Aug 15, 2016 03:08 AM|lextm|LINK
You did not provide all the information needed. Browsers such as IE do prompt, https://support.microsoft.com/en-us/kb/258063
First, what is the browser you use for testing?
Second, what is the URL used when the prompt occurs?
Third, by analyzing IIS log files or network packets, which of the two (Kerberos/NTLM) is used?
There is still so much to be explored, so I am not surprised to see that you get no solution yet.
Aug 15, 2016 04:45 PM|RPU|LINK
Thank you for your reply,
First, am using IE 11 and google chrome browsers.
Second, url is my application url when prompt occurs.
Third, am not sure how to check IIS log files.
Am using windows authentication and enabled windows authentication, disabled anonymous in server also.
Aug 16, 2016 05:56 AM|Nan Yu|LINK
You could check the iis log files to find the error status :
It will help you find the issue easier .