Deploying the application in IIS 6.0

Posted by Sreenuksr under ASP.NET on 11/21/2011 | Points: 10 | Views : 927 | Status : [Member] | Replies : 1

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.

Thanks in advance.


Posted by: muralikrishnasurap-12704 on: 11/22/2011 [Member] Starter | Points: 25

Hi Friend,
In IIS directory enable the integrated authentication and make sure do this fallowing settings in your browser..
Internet Explorer -> Tools -> Internet Options -> Advanced -> Security -> then check "Enable Integrated Windows Authentication".
i hope this should solve your problem.

Best Regards
Murali Krishna.S

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

Login to post response