I am using windows authentication on an intranet that has been duplicated for two different environments with different servers being accessed. I am using a domain without periods rather than IP so it should log in automatically but it prompts for a login on site 1. On site 2 it prompts for a login, but regardless of which user logs in, WindowsIdentity.GetCurrent().Name always returns my login which was the very first login rather than the current user.
Here is my configuration:
Anonymous authentication: disabled
Windows authentication: enabled
<authentication mode="Windows" />
<identity impersonate="true" />
<deny users="?" />
<validation validateIntegratedModeConfiguration="false" />
Why is it prompting for a login and why is one instance logging in properly and the other not?