In my asp.net 4.0 website I am using windows login user name to login in my website without asking credential if that windows login user is in DB if that user not in db then asking credential and authenticate against db .
To achieve above goal I implemented form and widows authentication in my website.
When I ran website through VS 2010(Dev. environment) I get actual windows login name but if I ran website on IIS 7 then I get “IUSER” as a windows login.
Following command I am trying
"HttpContext.Current.Request.LogonUserIdentity.Name" get "IUSR" (NT AUTHORITY\IUSR) on IIS 7.
"HttpContext.Current.User.Identity.Name" get empty on IIS 7.
How can i get actual windows login on IIS 7 as well?