473,836 Members | 2,091 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 7042
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.c om> wrote in message
news:OG******** ******@tk2msftn gp13.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******** ********@TK2MSF TNGP10.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.c om> wrote in message
news:OG******** ******@tk2msftn gp13.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.c om> wrote in message
news:#6******** ******@tk2msftn gp13.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.GetLastE rror
Response.Write "Sorry, there was an error. The error was " &
oErr.Descriptio n
Set oError = Nothing

%>
Ray at work

"Matt" <mb****@cmtek.c om> wrote in message
news:%2******** ********@tk2msf tngp13.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******** ********@TK2MSF TNGP10.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.c om> wrote in message
news:OG******** ******@tk2msftn gp13.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******** *****@TK2MSFTNG P09.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.c om> wrote in message
news:ec******** ******@TK2MSFTN GP12.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******** *****@TK2MSFTNG P09.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$******** *****@TK2MSFTNG P10.phx.gbl...
Did you not like the custom error page idea?

Ray at work

"Matt" <mb****@cmtek.c om> wrote in message
news:ec******** ******@TK2MSFTN GP12.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******** *****@TK2MSFTNG P09.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
7595
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: Microsoft OLE DB Provider for SQL Server error '80040e31' Timeout expired the error line points to the rs.Open sql,con line. The SQL Statement is:
7
2397
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 server and throwing an error: ------
13
7787
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 within that directory OR 2) Within a specific page, set the timeout as per http://www.microsoft.com/windows2000/en/server/iis/default.asp?url=/windows2000/en/server/iis/htm/asp/vbob246s.htm e.g. <% Server.ScriptTimeout = 1 %> and that the value in...
1
3143
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 configuration, these settings doesn't seem to have any affect: Web.config <sessionState timeout="20"/> IIS 5 configuration, ASP Script timeout = 6000 seconds. BR Johanna Turku
5
2603
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), RecordStatus, Assignee, Reporter (and also some more columns). The PK for this table is ID. It contains multiple entries for a Record.
3
2065
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 when it is called from the ASP code it is giving the following error message: Microsoft OLE DB Provider for SQL Server error '80040e31' Timeout expired
1
2534
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 masthead -->
1
4303
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 timeout error in the browser: -------------------------------------------------------------------------------------
8
3524
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 ... Whats the best way to inform the user about this issue rather than throwing the script timeout error. What approaches do you use for this....
0
9820
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9670
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10844
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10591
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10254
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9374
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6979
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5649
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
4016
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.