I am developing asp.net web application using VS 2008. I am using Windows Authentication. I am trying to capture the current user name from HttpContext.Current.User.Identity.Name. It works absolutely fine on development system. After deploying the code to
Test Environment (Windows Server 2008R2), we notice that the HttpContext.Current.User.Identity.Name is coming as null intermittently. Due to that I believe, I am getting "401 - Unauthorized: Access is denied due to invalid credentials." intermittently.
IIS
Anonymous Authentication - disabled
Windows Authentication – enabled
Web.config
<authentication mode="Windows"/>
<authorization>
<deny users="?"/>
</authorization>
Any help would be appreciated.
Go to the complete details ...