469,619 Members | 1,869 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,619 developers. It's quick & easy.

HttpContext.Current.User.Identity.Name returns wrong user name

We have an active directory user that just had her username renamed.
When the user is running an application that calls our CurrentUser web
service method (which returns the value of
HttpContext.Current.User.Identity.Name), her old username is returned.
DOMAIN\oldusername instead of DOMAIN\newusername. The user is logged in with
this new username and when we make a windows client .NET call to
System.Security.Principal.WindowsIdentity.GetCurre nt.Name it returns the
correct username "DOMAIN\newusername".

This has stumped the developers and our network admins. Can anyone point us
in the right direction or do we have to call Microsoft? It has not resolved
itself in 4 days now.

Hopefully someone will be so kind to share some information if they have it.

Public Function CurrentUser() As String
'Returns current user identity
Return HttpContext.Current.User.Identity.Name
End Function
Sep 22 '06 #1
0 3023

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Sjaakie | last post: by
2 posts views Thread by Abraham Andres Luna | last post: by
reply views Thread by =?Utf-8?B?QW50b25pbyBPJydOZWFs?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.