I am using windows server 2008r2 server and when i run the application in my machine it shows up this error:
Line 43: UserBL userBL = new UserBL();
Line 44: Response.Write(Environment.UserName);
Error line:Line 45: userBL.PSNo = Convert.ToInt64(Environment.UserName);
Line 46: //userBL.PSNo = Convert.ToInt64(10604474);
Line 47: //userBL.Password = ctrLogin.Password;
but the application works fine with windows xp machine.
pls help me out to correct this environment.username error.
thanks in advance