The following line
Environment.UserName
In debug mode in visual studio returns the identity of the user like I need.
Then when I se
In IIS, for your application, please . Enable ASP.NET Impersonation