I want to get the domain name and username.
I want it to return domainname\username forexample: Cool\Beans
My application is linked to both an internett and a locally runned program.
When i run it locally(as an application) it returns The correct domainname and username. feks: Cool\Beans That is when im using:
Environment.UserDomainName +"\\"+Environment.UserName
or when im using
WindowsIdentity.GetCurrent().Name
When im trying to use this in the internett application it returns. Workgroup\Cool$
I have tried to use HttpContext.Current.User.Identity.Name
it returns null
Anyone have any ideas??
Thanks for answers