Deploying asp.net application in IIS6.0 with Forms authentication mode

Posted by Sreenuksr under ASP.NET on 11/22/2011 | Points: 10 | Views : 1462 | Status : [Member] | Replies : 1
Hi,

I am getting user name by using the following code:

txtName.Text = Environment.UserName;

I have deployed the code in IIS and while running the application then i am getting
user name as "NETWORK SERVICE" in the textbox instead of logged user name.

And I am using the FORMS authentication mode. (this is mandatory)

Thanks in advance




Responses

Posted by: Krv on: 11/15/2012 [Member] Starter | Points: 25

Up
0
Down
a. Please check the user in which the iis is running./ App pool Identity



Thanks,
R.Vasanth
MCTS(SQL Server & BI)
http://bigdatatech.blogspot.com

Sreenuksr, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response