Solved

IIS Database Connection Sometimes Hangs

Posted on 2008-06-19
2
1,014 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now