c# - .NET returning incorrect username -
i made spelling mistake when created account few weeks back. changed account , can log onto domain new name. have web application in house still picking wrong name.
the .net application uses
system.security.principal.windowsidentity.getcurrent().name;
which gives old name.
if use
environment.username
i correct new name. did miss in ad? there somewhere can change name result in system.security.principal.windowsidentity.getcurrent().name; giving correct name?
i have no experience .net i'm sorry if question has obvious answer.
check out here answer:
add key:
"hklm/system/currentcontrolset/control/lsa/lsalookupcachemaxsize=0"
to registry cached. don't think restarting iis fix issue.
Comments
Post a Comment