Solved

IIS Database Connection Sometimes Hangs

Posted on 2008-06-19
2
1,025 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

717 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