I have the following code:\[code\] protected void Page_Load(object sender, EventArgs e) { string infors = ""; System.Security.Principal.WindowsIdentity usr = System.Security.Principal.WindowsIdentity.GetCurrent(); infors += "Authentication Type: " + usr.AuthenticationType + "<br>"; infors += "Name: " + usr.Name + "<br>"; infors += "IsAnonymous: " + usr.IsAnonymous + "<br>"; infors += "IsAuthenticated: " + usr.IsAuthenticated + "<br>"; infors += "IsGuest: " + usr.IsGuest + "<br>"; infors += "IsSystem: " + usr.IsSystem + "<br>"; infors += "Token: " + usr.Token.ToString() + "<br>"; Label1.Text = infors; }\[/code\]However, it keep giving me the wrong information on the \[code\]Name\[/code\] partAuthentication Type: NTLMName: SECTOR_A\AdministratorIsAnonymous: FalseIsAuthenticated: TrueIsGuest: FalseIsSystem: FalseToken: 564My IIS is set to:Anonymous Authentication - DisabledASP.NET Impersonation - EnabledBasic Authentication - EnabledWindows Authentication - Enabledand I even change the IE setting by setting to \[code\]Prompt for user name and password\[/code\] as shown below
====== However ======Although I enter the the Domain username and password in the popup login message when I open the web application, it did not give me the correct \[code\]Name\[/code\] part, which should be \[code\]SECTOR_HQ\Jack\[/code\].So I would like to ask if there are anything missing in my code and configurations.====== Added the Web.config ======\[code\]<configuration> <system.web> <compilation debug="true" targetFramework="4.0" /> </system.web></configuration>\[/code\]====== Application Pool Info ======.NET Framework Version: v4.0Managed Pipeline Mode: ClassicIdentity: ApplicationPoolIdentity