Solved

IIS Database Connection Sometimes Hangs

Posted on 2008-06-19
2
1,017 Views
Last Modified: 2012-08-14
Our server IIS6 / SQL Server 2005 / Windows 2003 / Classic ASP system will sometimes hang causing any page on the web site that connects to the database to not load. Non database pages will still load fine.
I believe it is something will the Application variable in global.asa. To fix the problem all I have to do is upload a saved copy of global.asa an the problem is fixed immediately. Starting and stopping the web service also works. I think what may be happening is that IIS 6 is losing the database connection application variable. I should also mention that we connect to a MySQL system on some ASP pages too. But that connection still works (I think).
It had been happening twice a week. Now it is 5 times a day. So I need to fix it ASAP!
0
Comment
Question by:Thread7
2 Comments
 
LVL 10

Accepted Solution

by:
KenAdney earned 375 total points
ID: 21825158
possibly it is timing out but I think that's a rare thing...are you closing all your connections to the db after you've returned your recordset?  If the SQL server is a different box (a good idea) then you could switch to stored procedures which'll speed up processing time.
0
 
LVL 29

Expert Comment

by:rdivilbiss
ID: 21825183
In windows explorer check the permissions on global.asa.

Should be
Interactive
Internet Guest Account
Network
Network Service

all have read only.

Administrator full control.  No other accounts should have access, especially write or delete.

In IIS the file properties should be read only and log visits.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question