I have this application I need to get the user name and machine name of the windows logged user. I hosted this on a server. When I am tested locally this works perfectly but when I hosted on the server the program returns the server name, not the local logged user username. The user is not required to login just launch the web app.
string Machine = Environment.MachineName string UserName = Environment.UserName;
TextBox_BCAPC_Name.Text = Machine; TextBox_User_Name.Text = UserName;
From my research I may need to add some code to my webconfig or update the Authentication settings for IIS.
I am wanting to get the user name and local machine name. Without having the user login to the web form.