K
KCHighland
We have an ASP.NET application that permits anonymous access and runs
as the IUSR account. The application accesses a SQL Server database
located on a different server. All the data access code is in a .NET
DLL that the ASP.NET application references. When accessing the
database, we use SQL Server authentication, passing in the name and
password of a SQL Server account created specifically for the
application. The SQL Server account in question is an owner for the
database it needs to access.
When we try to access the application, however, a DNS error occurs on
the logon page (the first page you hit). The logon page has code to
retrieve a list of facilities from the database. If we comment out the
code that retrieves the facility list, the site works just fine, and we
go right in (although the facility list is predictably empty).
We are quite stumped about this. We know that this is a common scenario
(separate machines for database and web server). But we do not know why
the system can't access the database. We suspect that it's because the
IUSR account doesn't have access to our DNS server, but we're not
certain. We tried changing the database settings to use IP addresses in
lieu of machine names, but that didn't work either.
Any ideas that anyone might have would be greatly appreciated.
Thanks in advance!
as the IUSR account. The application accesses a SQL Server database
located on a different server. All the data access code is in a .NET
DLL that the ASP.NET application references. When accessing the
database, we use SQL Server authentication, passing in the name and
password of a SQL Server account created specifically for the
application. The SQL Server account in question is an owner for the
database it needs to access.
When we try to access the application, however, a DNS error occurs on
the logon page (the first page you hit). The logon page has code to
retrieve a list of facilities from the database. If we comment out the
code that retrieves the facility list, the site works just fine, and we
go right in (although the facility list is predictably empty).
We are quite stumped about this. We know that this is a common scenario
(separate machines for database and web server). But we do not know why
the system can't access the database. We suspect that it's because the
IUSR account doesn't have access to our DNS server, but we're not
certain. We tried changing the database settings to use IP addresses in
lieu of machine names, but that didn't work either.
Any ideas that anyone might have would be greatly appreciated.
Thanks in advance!