I have created an Intranet application for storing customer related details. The application also stores Windows Logon nID of the person who submitted the form (Envionment.Username
). Everything looks and works good in Localhost. The form got deployed in IIS and now Environment.Uusername
returns a value from application pool inside IIS. We have set an identity value in IIS application pool which has access to the database and that value is getting returned for Environment.Username.
I tried with System.Web.HttpContext.Current.User.Identity.Name
but it returns a empty value.
WindowsAuthentication and AnonymousAuthenication are set to ENABLED in IIS.
Any leads on this would be of great help.
Thanks in advance