I set up IIS7 on a Windows 2008 R2 server and I think maybe I set up the permissions on a website incorrectly. When I use this code
protected void Page_Load(object sender, EventArgs e)
string LoggedInUser = Environment.UserName;
username.Text = LoggedInUser;
I get back the user who IIS was authorized to log in as or something and NOT the currently logged in user to the web page. I'm very new to configuring IIS and I'm not sure what I did wrong. But I remember when I was creating that new website, that I had to put in a "log in as" or something somewhere. Where do I need to correct that so that I can get the currently logged in user's name?