473,473 Members | 1,546 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 23979
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 New Member
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: 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
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...
1
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...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
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.