Mvc 4 app using windows authentication. User.Identity.Name displays the expected user name and domain on development machine and writes the expected username to the database. Deployed app writes ntauthority\network service as the username in the database.
Sql server on different server from web server. Added domain\machineName to sql server logins Gave active directory group permissions to read and execute inetpub\mySite folder If I set impersonation true the deployed app can not pull data, the website will
come up but all the data is missing. What the heck do I need to do to be able to log the current user in the database?
↧