c# - How do I find out what user my ASP.Net MVC application is running as? -
I want to show the Windows user that the application is being run on the diagnostic page on my ASP.NET MVC database check page To check whether they are setting up their IIS correctly, where can I get this information?
I tried the system. threading. Thread Custom Principal. Identity name. But it appears that the entry form by the user is not by authentication, as the built-in window user is running the code.
WindowsIdentity.GetCurrent (). Name
Comments
Post a Comment