I see that many people get this error, but their situations are all slightly different from mine.
I have an ASP.NET 4.0 web application that runs on IIS 6.0 on a Windows 2003 server.
When I retire to the web server field and register there and access the site as localhost , and not by machine name, the web application works fine. However, when I access the website from another client computer, I get the following error:
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'
The website has anonymous access enabled and Windows authentication enabled. The web application contains the following:
<authentication mode="Windows"> </authentication> <identity impersonate="true"/> <connectionStrings> <add name="MyConnection" connectionString="Data Source=MyDbServer;Initial Catalog=MyDatabase;Integrated Security=True" </connectionStrings>
My web server runs on a virtual server. Is this relevant? I guess not.
Please note that if I add my domain \ username and password to the web config after Imersonation = TRUE, the site will work.
ChadD Jun 09 2018-12-12T00: 00Z
source share