Windows Authentication Issue

Posted by Dotnetwithvenki under ASP.NET on 5/2/2013 | Points: 10 | Views : 739 | Status : [Member] | Replies : 1
Hi

Windows Identity becoming null after browsing the application for some time. Below is the code i am using to get the Windows User.

We are using .NET Framework 3.5 and IIS 7.0 & 7.5.

IIdentity WinId = HttpContext.Current.User.Identity;
WindowsIdentity wi = WinId as WindowsIdentity;

i am trying to get the windows name using wi.Name.

Thanks for the support and time.

Best Regards,
Venkatesh

Thanks & Regards
VENKI



Responses

Posted by: Niladri.Biswas on: 5/2/2013 [Member] Platinum | Points: 25

Up
0
Down
http://forums.asp.net/t/1903285.aspx/1

Best Regards,
Niladri Biswas

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

Login to post response