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:

http://social.msdn.microsoft.com/forums/en-us/csharpgeneral/thread/27e42d4a-6452-4840-bbf2-abbc16e22557

add key:

"hklm/system/currentcontrolset/control/lsa/lsalookupcachemaxsize=0"

to registry cached. don't think restarting iis fix issue.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -