473,785 Members | 2,768 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Script timed out, error ASP 0113???

I sometimes get this error after about 60 seconds of "waiting for
mazes.com" (but when the page works, it usually loads in less than 12
seconds).
Active Server Pages error 'ASP 0113'
Script timed out
/asp-maze/amazingtest.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.ScriptTi meout
or by changing the value in the IIS administration tools.


but if I click refresh, I usually get the page.

There is a very remote chance that there might be a loop causing this
problem, but I don't think so. I've added timer-checks to the loops
that might cause a problem, and have added other escape methods to
other places that I think have caused the problem.

My questions:

1) Can the system be set to tell what line of the program was executing
when it timed out? (This would certainly help figure out if there's a
particular place that is causing an occasional problem). I'd have to
tell my hosting person how to do it, so be specific if you can.

2) Could this be caused by too many people accessing ASP pages at the
same time? How would he increase the number of users allowed to be
loading pages simultaneously?

3) What steps would he use to reduce the time for this parameter, or
should I reduce it. 60 seconds seems awfully long, but I do have
another page that I

John

Jan 12 '06 #1
11 24178
www.MessageMazes.com wrote:
I sometimes get this error after about 60 seconds of "waiting for
mazes.com" (but when the page works, it usually loads in less than 12
seconds).
Active Server Pages error 'ASP 0113'
Script timed out
/asp-maze/amazingtest.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.ScriptTi meout or by changing the value in the IIS
administration tools.
but if I click refresh, I usually get the page.

There is a very remote chance that there might be a loop causing this
problem, but I don't think so. I've added timer-checks to the loops
that might cause a problem, and have added other escape methods to
other places that I think have caused the problem.

My questions:

1) Can the system be set to tell what line of the program was
executing when it timed out?


Not that I know of. You will need to add some logging functionality to your
application so you can see what was happening.
2) Could this be caused by too many people accessing ASP pages at the
same time? How would he increase the number of users allowed to be
loading pages simultaneously?
Maybe. What is occurring in that loop?

3) What steps would he use to reduce the time for this parameter, or
You can do it yourself by adding a
Server.ScriptTi meout = 120

command in your page. Not that I recommend doing this ...
should I reduce it. 60 seconds seems awfully long, but I do have
another page that I


John? John?? Are you ok? OMIGOD, JOHN'S BEEN KIDNAPPED BY ALIENS!! ;-)

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jan 12 '06 #2
Bob Barrows [MVP] wrote:
should I reduce it. 60 seconds seems awfully long, but I do have
another page that I


John? John?? Are you ok? OMIGOD, JOHN'S BEEN KIDNAPPED BY ALIENS!! ;-)


Oh wait. False alarm. He hit another timeout, right?
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jan 12 '06 #3
Dude, have you seen john? It's been like atleast 61 seconds.
I'm beginning to get worried. My cats disappeared in a wind-
storm at the same time he disappeared. -_wierd_- no?
Lets see what an error 0113 is...

maximum amount of time that a script can run before it is
terminated. The error is generated when the processing time
of the script exceeds the maximum value that has been
designated for the ScriptTimeout property.

NOTE: An increase in timeout value can have a negative effect
on server performance. You should design scripts that run
within the default timeout settings. For example, an increase
in script timeout value can keep IIS threads occupied and
reduce the number of users that the server can serve.

Have you tried loading the page, and then not waiting for it
to come back, but rather, hitting F5 about 5 seconds after you
make the first request? Does the second request come back any
faster?

It does not have to be loops... it could be a query that's not
coming back because of a bad or non-existant index or possibly
someone has chosen not to create primary keys on the tables for
that data?

Are there any conditional statements that might block against
another resource? or something that's not casting properly or
is null at the time of comparison?
D?

Bob Barrows [MVP] wrote:
Bob Barrows [MVP] wrote:
should I reduce it. 60 seconds seems awfully long, but I do have
another page that I


John? John?? Are you ok? OMIGOD, JOHN'S BEEN KIDNAPPED BY ALIENS!! ;-)

Oh wait. False alarm. He hit another timeout, right?

Jan 12 '06 #4
Sorry, I didn't realize I hadn't finished my first post. I'd gone off to
do something else, then when I came back, saw I hadn't sent the message,
so I sent it without rereading it.

(You can blame my ADHD)

The pages in question, if anyone cares to try them (and generate your
own maze while you're at it) are

http://www.mazes.com/asp-maze/amazing.asp

but rather than start there, start with one of these feeder pages:

http://www.messagemazes.com/Merit/WebAuthor.htm
http://www.messagemazes.com/Merit/Webmaster.htm
http://www.messagemazes.com/Merit/ComputerGuru.htm

Then you can test the program by putting your name into the box and get
personalized results.

For grins, and because it just occurred to me to try it, I added code to
tell me how many seconds of time it took to generate the code for each
page. The simple maze page is taking on the general order of around one
to four seconds (three tests, 1.5, 3.3 and 3.3 seconds for a 95x59
maze), and the harder maze page took over half-a-minute (two tests, 36.5
and 37.3 seconds) for a 203x93 personalized maze.

So, as you can guess, I don't want to reduce my script timeout much
lower than 60, though when I get the error, it's usually after 120
seconds, so I wonder if it even started running the script or not????

Any ideas will be appreciated.

John
www.MAZES.com
www.MessageMazes.com
www.GodLovesEveryone.org
etcetera

*** Sent via Developersdex http://www.developersdex.com ***
Jan 12 '06 #5
John wrote:
So, as you can guess, I don't want to reduce my script timeout much
lower than 60, though when I get the error, it's usually after 120
seconds, so I wonder if it even started running the script or not????

Any ideas will be appreciated.


Sorry, but without seeing code, we can only guess. You need to narrow it
down to something we can look at in a newsgroup post ... or hire a
consultant.

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jan 12 '06 #6
It occurred to me on the way home from various appointments this
afternoon that part of the problem might be that I'm creating all the
HTML code in memory, then writing it with <%=variable% > parameters
inside the actual HTML code at the bottom of the ASP page.

And if it works like some BASIC interpreters I've used in the deep dark
past (I cut my teeth on BASIC in 1977), then it may sometimes stop to do
garbage collection because I keep concatenating one string longer and
longer.

So, I added some code to see what parts of my program were taking how
long:

http:
(Seconds)
0.00 to 0.00: Various initializations
0:00 to 0:02: Read and Write various files
0:02 to 0:05: Block the word pixels into the numeric array
(I don't expect that statement to make sense to you)
0:05 to 0.99: Create the numeric maze array
0:99 to 3.34: CREATE MAZE AS HTML IN MEMORY
3.34 to 3.36: Create other values that will be written
TOTAL TIME: 3.355469 seconds

It was similar when I tried the same thing with the program that creates
a maze with an area over three times bigger:

0.00 to 0.03: Initialize, read and write various files
0.03 to 0.11: Putting word pixels into numeric array
0.11 to 3.09: Create numeric maze array
3.09 to 35.41: CREATE MAZE AS HTML IN MEMORY
35.41 to 35.42: Everything else, down to just before </BODY>
(which I assume includes putting HTML into the stream down to the user?)

Obviously, my slowest routine is creating the HTML and holding it in
memory. Would I be better off actually sending the code into the web
page stream instead of holding it in memory and putting it out with
<%=variablen ame%>?

And how should I do that if that makes more sense? I hadn't gotten
around to learning that yet. I've been teaching myself ASP by trial and
error, looking some stuff up at
http://msdn.microsoft.com/library/de.../en-us/script5
6/html/ddfa5183-d458-41bc-a489-070296ced968.as p and just really getting
into it in October.

Thanks for all the great advice so far.

John
www.MAZES.com
www.MessageMazes.com
www.GodLovesEveryone.org
etcetera
(John {at} any of these domains)

*** Sent via Developersdex http://www.developersdex.com ***
Jan 13 '06 #7
I hit the search engine, and am guessing that

Response.Write

is what I should be studying next, just in case someone was getting
ready to tell this idiot that he should have learned that in a "hello
world" application, which he skipped.

John
www.MAZES.com
www.MessageMazes.com
www.GodLovesEveryone.org
etcetera

*** Sent via Developersdex http://www.developersdex.com ***
Jan 13 '06 #8
SUCCESS!!!!!

Response.Write

was exactly what I needed to learn next.

The test page at
http://mazes.com/asp-maze/amazingwri...ster&cat=merit

says that it did all the processing in 2.3125 seconds, and that was for
the HARDER maze.

Later tonight, I'll work on updating the other ASP pages to do it the
same way.

Thanks for all the advice, and if you have any other ideas for me, feel
free to shoot them my way.

John
www.MAZES.com
www.MessageMazes.com
www.GodLovesEveryone.org
etcetera

*** Sent via Developersdex http://www.developersdex.com ***
Jan 13 '06 #9
John wrote:
It occurred to me on the way home from various appointments this
afternoon that part of the problem might be that I'm creating all the
HTML code in memory, then writing it with <%=variable% >
parameters inside the actual HTML code at the bottom of the ASP page.

And if it works like some BASIC interpreters I've used in the deep
dark past (I cut my teeth on BASIC in 1977), then it may sometimes
stop to do garbage collection because I keep concatenating one string
longer and longer.


VB/VBA/vbscript are notoriously inefficient where this is concerned. A
better method is to initialize an array large enough to contain all the
strings you will will need, add the strings to the array and then, use
Join() to put them together when you write the html to response.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jan 13 '06 #10

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

Similar topics

7
2392
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: ------
5
1629
by: Abby Lee | last post by:
My code does what I want (works unless there is a lot of volume...works for this month cause not a lot of items marked paid yet...) but the page times out for last month because there is just so many items. Is there a better way to do this? my page gets all distinct Oganizations. within each organization it gets each distinct Fund within each fund it gets each distinct Program then it lists each item that is paid for the month being...
1
2202
by: Anzu | last post by:
I've been working on a script that finds and updates a record in database based on the user's input. When I try it I get this error: Active Server Pages, ASP 0113 (0x80004005) The maximum amount of time for a script to execute was exceeded. Yo can change this limit by specifying a new value for the propert Server.ScriptTimeout or by changing the value in the IIS administratio tools. As I can't post a message for some reason whenever...
13
7780
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...
13
2459
by: Prabhat | last post by:
Hi Friends, I have code that will "BinaryWrite" a EXE file of 20mb to client using the ADO Stream. After the download the EXE file works fine without any problem. When I verified the EXE that gets downloaded to client machine that EXE has the below text added to the bottom: --------------------------------------------- <font face="Arial" size=2>.<p>Active Server Pages</font> <font face="Arial" size=2>error 'ASP 0113'</font>.<p>.<font...
2
2921
by: Usama Zulfiqar | last post by:
Hello guyz, One of my colleagues has made an upload website. We upload big data over the server via asp. Whenever I wanted to upload 5Mb file or more i receive ASP 0113 error. Is there any way to stop this error so that i can upload bigger files... I have also increase the timeout of IIS but still no use... Looking forward, Usama Zulfiqar
1
2532
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 -->
2
1719
by: Darshini | last post by:
Hi When im opening my asp pages im getting this error Script timed out <file>.asp, line <line> The maximum amount of time for a script to execute was exceeded
3
10584
by: =?Utf-8?B?SnVzdGluIERvaA==?= | last post by:
I am constantly getting the 'Script timed out' error, and would like to see if there is any way I could modify the ASP page. I think I did all I could to improved the performance at the database table level, but when it comes to the ASP, the error occurs most of time. This error happens when this ASP page has been moved to a new server. I modified the "server.ScriptTimeout = " at the ASP and also at IIS. The report does not retrieve...
0
9645
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
9480
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
10148
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9950
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
8972
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
6740
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
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.