How to get windows logged in user username using only Forms authentication in asp.net mvc application after deploy on iis I try with many methods but no one don't work correctly like this
var userName1 = System.Web.HttpContext.Current.User.Identity.Name;
var userName2 = WindowsIdentity.GetCurrent();