Posted on: 1/20/2014 10:19:02 PM | Views : 693

All,
I'm trying to add the user's Windows username (domain\username) to my page so that they know what I'm using for it.
UserName.Text = Principal.WindowsIdentity.GetCurrent.Name This is in my MasterPage's Page_Load, and i'm getting Object reference not set to an instance of an object. Why wouldn't this work? (FYI, I'm importing System.Security)
It couldn't be too early to try and get the user's Windows ID, could it?
Isn't that available any time they are logged into the computer? 

Go to the complete details ...