How do I get the current username in .NET using C#?
I tried several combinations from existing answers, but they were giving me
DefaultAppPool IIS APPPOOL IIS APPPOOL\DefaultAppPool
I ended up using
string vUserName = User.Identity.Name;
Which gave me the actual users domain username only.