I am trying to get windows user name in we application using the below code which is running somewhere.
I am stuck at one line which should return me msg = 3 to move further. In below highlighted line, msg need to be returned 3 in order to go in else statement which is not happening. Every time I am getting its value as 1 which makes the logic travel to if statement and them program terminates.
Is there any IE setting that i am missing here. Please reply.