I have a classic ASP page which when I browse to it throws the error "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
Below is the code for my ASP test page which is throwing the error:
<%
Session.Timeout = 10
Set dbConn=Server.CreateObject("ADODB.Connection")
On Error Resume Next
dbConn.Open "Provider=SQLOLEDB;server=<MyServer>;database=<MyDatabase>;Trusted_Connection=yes;Integrated Security=SSPI"
for each errobj in dbConn.Errors
Response.write errobj.Number & "<br />"
Response.write errobj.Description & "<br />"
next
On Error Goto 0
%>
This is trying to connect to a SQL Server 2008 database server. The site is setup with the application pool using a service account which has access to the database server. There are .aspx.cs pages in the code base which are connecting to the database with no errors and a similar connection string but the classic ASP pages are giving this error. This only happens after we have deployed to our QA server, it runs with no errors locally. The site is setup to run under Anonymous Authentication and all other Authentication modes are disabled.
I'm wondering what settings I may need to enable on the web server to have these requests go through.