473,399 Members | 3,106 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

DNS Server Error when Hitting Database?

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!

Nov 19 '05 #1
2 1639
Troubleshoot it.

1) Install sql query analyzer on your web server running IIS
2) Can you connect to the sql server from it?
3) If not, why?
4) The connection string is everything, also are you hard mapping in your
code, or are you using domain name resolution? Show me your connection
string, and also the ip and computer names and I may be able to help you
better. Remeber, start with the simplest form of the problem, can I connect
to the databse from the computer it is on... another computer...
--
There is always a way
"KCHighland" wrote:
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!

Nov 19 '05 #2
Hi KC:

What is the specific error message you are seeing? You may be getting
the IE "version" of the error, which will be mind numbingly useless.

Remove friendly error messages in IE ( Tools -> Options -> Advanced ->
and un-check 'Show friendly HTTP error messages'). After that you may
also need to modify web.config to display the full details of the
error.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On 27 May 2005 08:01:56 -0700, "KCHighland" <kc********@hotmail.com>
wrote:
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!


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Rob Meade | last post by:
Hi all, At work we have 2 servers in a cluster for our web apps. One problem we have experienced (along with many others!) - is that if a user is logged into one of the applications on server...
5
by: VinnieT | last post by:
I have a load balanced system that consists of 3 production servers. There are about 20 different applications that are used on these boxes. One of my applications in particular is used more than...
3
by: Paul | last post by:
I have an Access 2000 database with a form that is giving me some major headaches. When you open the form, it displays all records and allows editing, but has AllowAdditions set to False so that...
9
by: Steve Buster | last post by:
All right, I have read every forum, newsgroup etc about this issue and no one seems to know how to fix it. I am getting a "Server Application Unavailable" exception running my .NET 1.1...
1
by: yopy | last post by:
i have developed a web service which return dataset on dev machine, when i invoke the web service from the same machine it works fine, but when i deploy the web service to another machine, and...
1
by: Jerry | last post by:
I am creating an ASP.NET page that does the following: The Page_Load event connects to the database to populate a dropdown list. The Button_Click event connects to the database to check if the...
6
by: Todd Brewer | last post by:
Windows Server 2000 ASP.NET 2.0 SQL Server 2000 (on a physically seperate server) I moved an ASP.NET 2.0 application from a development server to production, and am getting the following error:...
4
by: Warex | last post by:
Maybe someone can help, my code works untill it gets to update when it tells me Syntax error in INSERT INTO statement. Thought this was automaticaly created according to MS. Im lost, my code is...
0
by: lbseong | last post by:
Hi Expert, I am currently looking for the way for the migration.We have purchase new server and need to migrate all the entire database, sql jobs, sql login into this brand new server. I would...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.