473,715 Members | 5,945 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Server.ScriptTi meout

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

if I add <% Server.ScriptTi meout = 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 24006
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.c om> wrote in message
news:eu******** ******@TK2MSFTN GP09.phx.gbl...
I'm looking for a definitive answer to a Server.ScriptTi meout question.

if I add <% Server.ScriptTi meout = 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.ScriptTi meout = 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.c om> wrote in message
news:eu******** ******@TK2MSFTN GP09.phx.gbl...
I'm looking for a definitive answer to a Server.ScriptTi meout question.

if I add <% Server.ScriptTi meout = 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.ScriptTi meout = 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.ScriptTi meout 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.ScriptTi meout = 4
Do
Loop
[p2] Do
Loop


How about this?

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

--
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.ScriptTi meout = 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.ScriptTi meout 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
1166
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 *** Sent via Developersdex http://www.developersdex.com ***
4
2468
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 can get this to work? Below is my code: Response.Expires = -1 Response.Buffer = True 'Response.ContentType="application/vnd.ms-excel" Server.ScriptTimeout = 10000
3
5191
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 site. Kind regards, Hermes
0
1845
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 server timeout properties ----------- Active Server Pages error 'ASP 0113'
6
16141
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" exception? If I am right, then something screwy is going on with my server. Allow me to explain. I have a wee page that sends 30 emails out to various people in our company
1
3230
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 executionTimeout in Machine.Config and Web.Config to = "3", which is also being ignored. I've tried rebooting, iisreseting, begging, and pleading. Can someone please tell me what I'm doing wrong WebForm1.aspx.c using System using...
0
1606
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 minutes;-) Is this a bug in asp.net and is there a simple workaround? I tested this issue with Framework 1.1 (with and without SP1). Script: public class Test : System.Web.UI.Page
3
1352
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
5625
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. The stored procedure for this report has been already went through Database Engine Tuning Advisor to put all the necessary indexes on the associated tables.
0
8718
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
9340
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
9103
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
9047
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
7973
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
4477
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...
0
4738
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3175
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
2
2539
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.