One of our user has changed her last name, in AD we made changes and she logged to her machine with name user name. We have two application one user "System.Web.HttpContext.Current.User.Identity.Name" which is picking up new name from machine but another application is using "My.User.Name" which still picks up old user name. We are using VB.Net and its web based application.
Can you please help me? We deleted her old profile from PC and recreated profile with new name but still having same issue.
I would really appriciate your help, Thanks, Tapan Desai
Hi, my guess is that your user is getting a stale record from the Local Security Authority (LSA) of her PC. The LSA is always checked first by LsaLookupSids (which is the API being used by My.User.Name), so this kind of issue can appear when you rename a user account.