Hello,
I have a web application that uses HttpContext.Current.User.Identity.Name (DOMAIN/NameUser)
It returns wrong user
For example I expect dar12101@..... and it returns dar09001@.....
Web application has 100 users and only two back wrong.
Here the code:
string windowsAuthentication = HttpContext.Current.User.Identity.Name;
Does anybody know tell me something?
Thanks Do the users have multiple sign-ons?
I would check in AD and see what their DN actually is, or see if their user name has changed since the last them they logged in.
If it's working for 98/100 users, I would lean towards AD configuration/account problems vs. chasing code for right now.
Cheers, Thanks for reply,
but I have an application that works correctly, and my appication doesn't work correctly.
Plus it works in Firefox and not in Internet Explorer.
I think it can be a problem about IIS. I tried to use another server (web server):
same server version, same IIS version.
HttpContext.Current.User.Identity.Name is correct.
I cannot find the reason.
Does anybody know tell me something?
  • Read the question carefully.
  • Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  • If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  • Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question. Let's work to help developers, not make them feel stupid.
  •