If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Problem of Script timed out

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-11-03, 09:53
liorlank liorlank is offline
Registered User
 
Join Date: Nov 2003
Posts: 22
Problem of Script timed out

I have this Error:

Active Server Pages error 'ASP 0113'
Script timed out

/Client/file.asp

The maximum amount of time for a script to execute was exceeded. You can change this limit by specifying a new value for the property Server.ScriptTimeout or by changing the value in the IIS administration tools



How can I solv it?????
Reply With Quote
  #2 (permalink)  
Old 12-11-03, 11:24
sundialsvcs sundialsvcs is offline
Registered User
 
Join Date: Oct 2003
Posts: 706
Wink

The script is probably in an endless loop. An endless loop. An endless loop.
__________________
ChimneySweep(R): fast, automatic
table repair at a click of the
mouse! http://www.sundialservices.com
Reply With Quote
  #3 (permalink)  
Old 12-11-03, 16:04
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
What is that page doing ?
Reply With Quote
  #4 (permalink)  
Old 12-13-03, 16:55
wtbell wtbell is offline
Registered User
 
Join Date: Dec 2003
Posts: 2
Same Problem

I have the same problem with one of my scripts.

In my application, I'm updating a series of database tables -- replacing the data from one database to another. Then, with one of the tables, I'm updating a field depending on some other data within that table.

When I run this script on my development system, there is no problem: The routine takes about 7 seconds in total. When I load the program onto my client's machines, it runs very slow and eventually times out as above.

I've broken the procedure down into smaller chunks which seems to solve the problem, but I'd really be interested in other possible solutions, including some way to remotely set the Server.ScriptTimeout (because I do not have access to the IIS Admin Tools for these applications).
Reply With Quote
  #5 (permalink)  
Old 12-15-03, 08:22
liorlank liorlank is offline
Registered User
 
Join Date: Nov 2003
Posts: 22
Re: Problem of Script timed out

[QUOTE][SIZE=1]Originally posted by liorlank
I have this Error:


I forgot to say that when I use this code on a .mdb DataBase file it's all work fine. The problem happan only on SQL server DataBase. I have no prblem in my code.

How can i fix it?
Reply With Quote
  #6 (permalink)  
Old 12-15-03, 10:40
Apel Apel is offline
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 228
hehe, yea, we all write error free code

but as long as you don't give us at least some hints what your script is doing there's no way of telling how to resolve the problem. You can try increasing the script timeout like the message already sais if your script just takes longer to execute...
Reply With Quote
  #7 (permalink)  
Old 12-17-03, 04:11
wtbell wtbell is offline
Registered User
 
Join Date: Dec 2003
Posts: 2
A Fix but not the Solution

Found a reference that suggests that you may set the ScriptTimeout for the server from a template:

Server.ScriptTimeout = ____ (some number of seconds).

If this time is less than the server's default, the routine will continue to run until reaching the server's setting.

I got around the problem by breaking the routine down into small chunks. Some operations still took considerable time but they finished. It also seems that the routine gets slower each time it is run -- suggesting that some resources are being consumed and not released.

For reasons I don't want to go into, I'm running a PWS on a Windows 98 machine and the database is Access 97. Routine works well on this machine.

The Client is running NT Workstation. We're using the IIS webserver on this installation. Machines are networked, but this application is local (desktop). Other .asp code seems to work fine with no problems -- it is just when updating one database with data from another that we have problems.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On