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

Server.ScriptTimeout

I'm looking for a definitive answer to a Server.ScriptTimeout question.

if I add <% Server.ScriptTimeout = 300 %> to a page, does that then alter
the default 90 second script timeout for ALL pages (if so, is it for that
session or until??) or does it just alter the timeout for THAT individual
page?

I've been through the IIS docs and I haven't been able to find the
definitive answer.

Thanks!
Jul 19 '05 #1
5 23974
If you put it in that page, it applies to that page (not all pages, and not
session-wide either).

http://www.aspfaq.com/2066
http://www.aspfaq.com/2366



"Bryan" <ne**@psacake.com> wrote in message
news:eu**************@TK2MSFTNGP09.phx.gbl...
I'm looking for a definitive answer to a Server.ScriptTimeout question.

if I add <% Server.ScriptTimeout = 300 %> to a page, does that then alter
the default 90 second script timeout for ALL pages (if so, is it for that
session or until??) or does it just alter the timeout for THAT individual
page?

I've been through the IIS docs and I haven't been able to find the
definitive answer.

Thanks!

Jul 19 '05 #2
Try it:

<%

Server.ScriptTimeout = 4
Do
Loop
%>

Then make a second page with:
<%
Do
Loop
%>

page1 shoud time out in 4 seconds. Then page2 should timeout in <server
setting> seconds.

Ray at work

"Bryan" <ne**@psacake.com> wrote in message
news:eu**************@TK2MSFTNGP09.phx.gbl...
I'm looking for a definitive answer to a Server.ScriptTimeout question.

if I add <% Server.ScriptTimeout = 300 %> to a page, does that then alter
the default 90 second script timeout for ALL pages (if so, is it for that
session or until??) or does it just alter the timeout for THAT individual
page?

I've been through the IIS docs and I haven't been able to find the
definitive answer.

Thanks!

Jul 19 '05 #3
"Bryan" wrote:

if I add <% Server.ScriptTimeout = 300 %> to a page,
does that then alter the default 90 second script timeout
for ALL pages (if so, is it for that session or until??)
or does it just alter the timeout for THAT individual
page?


In my experience, it only affects the current script. I have a script that
is set to 14400 because 7200 wasn't enough time -- at least it wasn't on our
old server. It affects no other scripts, though I can't speak for sessions.
In any case, you can try manually resetting the ScriptTimeout at the end of
your processing, if you are really worried about it.

Of course, Server.ScriptTimeout is a read/write property, so you could
simply set up a test involving two scripts if you want to see for
yourself...
--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 19 '05 #4
"Ray at <%=sLocation%>" wrote:
[p1] Server.ScriptTimeout = 4
Do
Loop
[p2] Do
Loop


How about this?

[p1] Server.ScriptTimeout = 10000
[p2] Response.Write(Server.ScriptTimeout)

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 19 '05 #5
Payal
1
Setting Server.ScriptTimeout = 0 does not work..
Also in IIS when we try to give 0 as the scripttimeout value, it will not accept it, since it demands a value from 1 to 2000000000

So its a wrong conception that setting Server.ScriptTimeout to 0 will set the script time to infinity...

Or may be i m wrong.. if i m missing anything please suggest.
Jul 28 '06 #6

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

Similar topics

0
by: Paul | last post by:
Any code that accesses the Server object appears to break, such as: Set conn = Server.CreateObject("ADODB.Connection") OR Response.Write(Server.ScriptTimeout & " seconds") Thanks Paul ***...
4
by: A.S. | last post by:
I have an app that gets data from SQL Server and writes it to a csv file. My problem is that my query returns 25K + records. IE seems to 'hang' and the csv file never gets created. Any Ideas how I...
3
by: Hermes | last post by:
Hi All, Is there a way to specify the server timeout for IIS in an asp file rather than with IIS. As I would just want one page to have a long timeout period but limit the other pages in the...
0
by: g_sharad | last post by:
Hi I am trying to use the server.scriptimeout for my asp code for sending the mails to my 1000 odd subscribers But after approx 150 records the script gives an error... saying pls reset the...
6
by: Anthony Williams | last post by:
Hi all, Am I right in thinking that if I set Server.ScriptTimeout to, say, 600 that every request for an .ASPX page will wait up to 600 seconds before responding with a "Request Timed Out"...
1
by: Chris | last post by:
I've created an aspx page that should time out every time it is executed, yet it never does. It seems as though the value of Server.ScriptTimeout is just being ignored by asp.net - I've also set...
0
by: srt | last post by:
Hi, I have some problems with setting Server.ScriptTimeout. The posted script doesn't stop after 120 seconds (the timestamps are displayed after the 120 seconds and I stopped the server after 5...
3
by: IMRAN SAROIA | last post by:
I want to make Server.ScriptTimeout to infinity and tried to set to 0 but it does not work. Can you please give more ideas? Thanks Yuba, CA
20
by: =?Utf-8?B?SnVzdGluIERvaA==?= | last post by:
"Active Server Pages error 'ASP 0113' Script timed out" I am still getting this error, and I am not sure how I could fix this. When I execute the query at SQL 2005, it only takes 8 seconds....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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
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
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...
0
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,...

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.