473,396 Members | 2,052 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,396 software developers and data experts.

Classic ASP/Hanging when accessing db

We have several classic asp pages that run on our website. Some of those pages connect to Access Databases. The website has run fine for many many years and we have made no changes to the database, server or the website code recently.
About a week ago, seemingly out of the blue, we started having issues with the website sporadically hanging at times. The pages that seem to be affected are the ones that access the db. The problem just seems to be getting worse to the point it is pretty much unusable.
We are running Windows Server 2003,SP2, IIS6 and Access 2003. Running the site in Firefox, I have seen this error:
Active Server Pages error 'ASP 0113'
Script timed out
The solutions they give for that error would not make sense for us since we have made no changes to the site and it was working fine before.
I have researched the issue and the only thing I found similar is this article:
http://support.microsoft.com/default.aspx?scid=kb;en-us;838306&Product=iis60
Since we have SP2 on the server this may not apply. We are stumped. Any advice on troubleshooting or what this could be is greatly appreciated.
Thanks in advance, Melissa
Jan 14 '11 #1
7 3278
jhardman
3,406 Expert 2GB
Melissa,

From my own personal experience I would guess that the real issue is poor error handling. Unfortunately, classic asp has no robust error handling built in. Go to one of the pages with the issue and search for a line with this text.
Expand|Select|Wrap|Line Numbers
  1. on error resume next
comment out this line (put an apostrophe at the beginning) and run it. This line was masking the real error and the page was trying to continue even though it had a significant error. Without this line it shouldn't hang at all, in fact you should see the real error very quickly.

Jared
Jan 14 '11 #2
Thanks for the quick reply!

I did search and that line of code is not in any of the pages with the problems.
Jan 14 '11 #3
jhardman
3,406 Expert 2GB
Also check to see if they have any include files - the on error line might be there.

Jared
Jan 14 '11 #4
Nope. No include files. This has just really been crazy. No rhyme or reason to it. Like I said, the code has not changed and it worked just fine until a week ago. I would think if it was something in the code, it would have happened before, but this website has been running since 2006 and we have never seen this before. It is just so flaky.
Jan 14 '11 #5
jhardman
3,406 Expert 2GB
The next thing to check for is loops - for, while, do. These are the most likely thing to drag on, because somehow they are looping forever.

Jared
Jan 14 '11 #6
How do I know which loops are causing the problem? Is there a way to check them?
Jan 19 '11 #7
jhardman
3,406 Expert 2GB
Change one at a time to a numbered loop, maybe 5 or 10 times through to make sure the loop isn't repeating infinitely. The other thing I do for routine troubleshooting is put lots and lots of response.write comments in so you can tell how far you got (you might have to remove the response buffer) before the error.
Jan 20 '11 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Rune Runnestø | last post by:
How do I focus the cursor in the input field 'numberField' when accessing this jsp-file (or html-file) ? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head>...
0
by: Materialised | last post by:
Hi All, My program is hanging when I call a function for convert a image file to base64. I am wondering if I handled the call to this function within a different thread if it would make any...
1
by: ken.beutler | last post by:
I am getting a 404 error when trying to access an ASP page from a remote machine (via Internet Explorer). However, the asp page is processed successfully when accessing this page from the local...
3
by: Nathan Sokalski | last post by:
When I attempt to access a Microsoft Access database from my website, I recieve the following error: Server Error in '/' Application....
10
by: Anton | last post by:
Hi, when accessing a secured 3rd party webservice i'm getting a 401 HTTP Statuscode (unauthorized). When entering the url in a browser and entering the username and password manually, the wsdl is...
0
by: ljkorhon | last post by:
We use an Access front-end to run reports by linking to our SQL database. The end users get to the Access file over Citrix and I have a local copy on my hard drive. The problem that I'm running...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.