We are using VS 2005. I need to get user who have logged on to the Intranet site I am using
System.Security.Principal.WindowsPrincipal p = System.Threading.Thread.CurrentPrincipal as System.Security.Principal.WindowsPrincipal;
this.GblUserID = p.Identity.Name;
this returns me the results only on my development local machine. when I moved the code to staging server It won't return any results.
Can some one please help me asap. in my web.config I have
<identity impersonate = "true" />