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

How can I capture the Script timeout Error?

Hi,

I need to capture the Script timeout error if that is possible. I know I can
increase the timeout value in the server settings or in the scripts itself
but I really want to make sure that no timeout situation will results as the
standard script timeout error page.

Can we do this ??

Help please.
Matt
Jul 19 '05 #1
8 7012
Turn off buffering and response.write during your loop. There isn't going
to be any scripting error if your page times out, so you have to find what
is causing things to take so long. It's often an endless loop.

Ray at work

"Mathieu Blais" <mb****@cmtek.com> wrote in message
news:OG**************@tk2msftngp13.phx.gbl...
Hi,

I need to capture the Script timeout error if that is possible. I know I can increase the timeout value in the server settings or in the scripts itself
but I really want to make sure that no timeout situation will results as the standard script timeout error page.

Can we do this ??

Help please.
Matt

Jul 19 '05 #2
Thanks Ray,

But how can I know that I have hit the time out ? Because I understand your
answer and it make sens but I don't just want not to receive any error
message, I want to know when it's happening in order to display a friendly
error message instead of the IIS error..

Matt
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Turn off buffering and response.write during your loop. There isn't going
to be any scripting error if your page times out, so you have to find what
is causing things to take so long. It's often an endless loop.

Ray at work

"Mathieu Blais" <mb****@cmtek.com> wrote in message
news:OG**************@tk2msftngp13.phx.gbl...
Hi,

I need to capture the Script timeout error if that is possible. I know I

can
increase the timeout value in the server settings or in the scripts itself but I really want to make sure that no timeout situation will results as

the
standard script timeout error page.

Can we do this ??

Help please.
Matt


Jul 19 '05 #3
Set the timeout to something ridiculously high, then write better code and
fix the timeout problem. I don't believe you can trap a script timeout
error.


"Matt" <mb****@cmtek.com> wrote in message
news:#6**************@tk2msftngp13.phx.gbl...
Thanks Ray,

But how can I know that I have hit the time out ? Because I understand your answer and it make sens but I don't just want not to receive any error
message, I want to know when it's happening in order to display a friendly
error message instead of the IIS error..

Jul 19 '05 #4
Ah, I see. Create a custom error page (500).

<%
Dim oError
Set oError = Server.GetLastError
Response.Write "Sorry, there was an error. The error was " &
oErr.Description
Set oError = Nothing

%>
Ray at work

"Matt" <mb****@cmtek.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Thanks Ray,

But how can I know that I have hit the time out ? Because I understand your answer and it make sens but I don't just want not to receive any error
message, I want to know when it's happening in order to display a friendly
error message instead of the IIS error..

Matt
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Turn off buffering and response.write during your loop. There isn't going
to be any scripting error if your page times out, so you have to find what is causing things to take so long. It's often an endless loop.

Ray at work

"Mathieu Blais" <mb****@cmtek.com> wrote in message
news:OG**************@tk2msftngp13.phx.gbl...
Hi,

I need to capture the Script timeout error if that is possible. I know
I can
increase the timeout value in the server settings or in the scripts itself but I really want to make sure that no timeout situation will results

as the
standard script timeout error page.

Can we do this ??

Help please.
Matt



Jul 19 '05 #5
Yes, and take Aaron's suggestion at determining what is causing the timeout.
What is causing it?

Ray at work
Jul 19 '05 #6
Oh I have no control on that, the script timeout because of the response
time of a distant database server and I have no control on it's performance
so I was wondering if I had any possibilities to trap this error.

Thanks anyway everybody. I'll do it like I was going to in the first place.
Increasing the timeout.
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:eD*************@TK2MSFTNGP09.phx.gbl...
Yes, and take Aaron's suggestion at determining what is causing the timeout. What is causing it?

Ray at work

Jul 19 '05 #7
Did you not like the custom error page idea?

Ray at work

"Matt" <mb****@cmtek.com> wrote in message
news:ec**************@TK2MSFTNGP12.phx.gbl...
Oh I have no control on that, the script timeout because of the response
time of a distant database server and I have no control on it's performance so I was wondering if I had any possibilities to trap this error.

Thanks anyway everybody. I'll do it like I was going to in the first place. Increasing the timeout.
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:eD*************@TK2MSFTNGP09.phx.gbl...
Yes, and take Aaron's suggestion at determining what is causing the

timeout.
What is causing it?

Ray at work


Jul 19 '05 #8
Yes that's a great idea but unfortunately Im working with IIS 4.0 and
correct me if I'm worng but ASP 2.0 does not support this method? But even
if I can't use it I would have a couple of question for my personnal
benefit. I have never used that kind of Custom Error page. How does that
work ? Where do you save it ? Does it need to have a specefic name or
something ?

Thank you very much for your help.

Matt

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:O$*************@TK2MSFTNGP10.phx.gbl...
Did you not like the custom error page idea?

Ray at work

"Matt" <mb****@cmtek.com> wrote in message
news:ec**************@TK2MSFTNGP12.phx.gbl...
Oh I have no control on that, the script timeout because of the response
time of a distant database server and I have no control on it's

performance
so I was wondering if I had any possibilities to trap this error.

Thanks anyway everybody. I'll do it like I was going to in the first

place.
Increasing the timeout.
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:eD*************@TK2MSFTNGP09.phx.gbl...
Yes, and take Aaron's suggestion at determining what is causing the

timeout.
What is causing it?

Ray at work



Jul 19 '05 #9

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

Similar topics

11
by: David Berry | last post by:
Hi All. I have a SQL Statement on an ASP page that only returns 4 records. When I run it in SQL Server or Query Analyzer it runs in less than a second. When I run it from my ASP page I get: ...
7
by: Surajit Laha | last post by:
Hi, I am suffering from a strange problem! I was porting my ASP pages from one server to the other (both Win 2000 Ad. Server). While I ported the reports it is not running at all at the new...
13
by: Patrick | last post by:
I understand that with IIS5.1 on Windows XP Professional SP1, I can 1) Either set under IIS Manager-> Any specific Virtual Directory-> Configuration->Options->ASP Script timeout for all pages...
1
by: Sebitti | last post by:
I'm getting timeout error in my client application (asp.net client) when I call a web service that is taking some time (2 - 3 minutes). How can I configure the timeout limit? Current...
5
by: devi | last post by:
hi, I am creating a simple bug tracker application (in Access db) and i created a hisotry table to log the bug history. The history table contains details like ProblemRecordNo (PRN),...
3
by: Raj | last post by:
Hi, I'm getting the Timeout error in one of my ASP application. I'm calling a slight complex stored procedure which is taking bet 35 to 40 seconds when run in the backend which is not bad. But...
1
by: george | last post by:
Hi all, here's my index.asp file. I don't know where has gone wrong. can't run properly, just showing error ASP 0113 Script timeout <!--#include file="head.asp"--> <!-- begin...
1
by: Mani | last post by:
Hi, This is the second time i am posting this question, since i didnt get any reponse from my previous post. When i tried to execute the script in browser, i am getting the following...
8
by: michal | last post by:
hi guys, i was wondering how you deal with script timeouts caused by huge file uploads. Lets say I have a script timeout of 2 minutes and the user uploads a file which takes more than this ......
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.