I am an active directory user and I am simply trying to print the name of the current user out in a
Respnse.Write() method. From what I read from several other questions posted here I need to use
using System.Security.Principal; string username = WindowsIdentity.GetCurrent().Name
However, when I try to write the username to the screen I get
NT AUTHORITY\NETWORK SERVICE
Here is the code I am using to write to the screen:
and I have identity impersonate set to true in my web.config. What do I do next?