473,563 Members | 2,681 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ScriptTimeout

Can anyone please explain to me what Server.ScriptTi meout actually is?
I don't quite understand the explanation in the documentation.

In my aspx page, I typed in the following codes:

private void Page_Load(objec t sender, System.EventArg s e)

{

Server.ScriptTi meout = 2;

for (int i = 0;i < 10;i++)
Thread.Sleep(10 00);

}

but the request wasn't timed out. So I figure that
I must be misunderstandin g something here.
Anyone please...

Ted
Nov 18 '05 #1
1 1955
SSW
Hi!

Server.ScriptTi meout = NumSeconds

A default ScriptTimeout can be set for a Web service or Web server by using
the AspScriptTimeou t metabase property. The ScriptTimeout property cannot be
set to a value less than that specified in the metabase. For example, if
NumSeconds is set to 10, and the metabase setting contains the default value
of 90 seconds, scripts will time out after 90 seconds. However, if
NumSeconds were set to 100, the scripts would time out after 100 seconds.

Thread.Sleep(10 00); // Thread sleeps for 1 Sec ie. 1000 Millisec
Below is sample: Script time out( Thread Sleep for 500 Second greater the 90
Second)
private void Page_Load(objec t sender, System.EventArg s e)
{
Server.ScriptTi meout = 90;
for (int i = 0;i < 500;i++)
Thread.Sleep(10 00);
}

Below is sample: Script time Don't time out( Thread Sleep for 50 Second less
the 90 Second)
private void Page_Load(objec t sender, System.EventArg s e)
{
Server.ScriptTi meout = 90;
for (int i = 0;i < 50;i++)
Thread.Sleep(10 00);
}

HTH

Thanks,

sswalia
MCSD, MCAD, OCA

"Ted Burhan" <tb*****@nospam .com.au> wrote in message
news:u3******** ******@TK2MSFTN GP12.phx.gbl...
Can anyone please explain to me what Server.ScriptTi meout actually is?
I don't quite understand the explanation in the documentation.

In my aspx page, I typed in the following codes:

private void Page_Load(objec t sender, System.EventArg s e)

{

Server.ScriptTi meout = 2;

for (int i = 0;i < 10;i++)
Thread.Sleep(10 00);

}

but the request wasn't timed out. So I figure that
I must be misunderstandin g something here.
Anyone please...

Ted

Nov 18 '05 #2

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

Similar topics

5
23989
by: Bryan | last post by:
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...
1
1911
by: Sam Kong | last post by:
Hello! I made an ASP page which converts big data from a CSV file to SQL Server. It takes so long like an hour. So in the page I wrote the following line. Server.ScriptTimeout = 100000 But the pages gives an timeout error after about 40 minutes.
0
1050
by: Deepson Thomas | last post by:
Hi, i want to trap the ASP ScriptTimeout Error. Its okay if i can do it in the same page or redirect to any other page via coding or via any changes in IIS. This is very important to us. Waiting for ur reply. Thanks in advance -- Deepson Thomas
0
1843
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
16083
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...
1
3209
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...
0
1602
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:...
3
9909
by: Arsen V. | last post by:
I am trying to make the page execute timeout after 2 seconds. I first tried using the Server.ScriptTimeout = 2 in the Page_Load() event. The next line does System.Threading.Thread.Sleep(10000); // 10 second pause I was expecting the page to timeout with a Request timeout error. However, it did not timeout and continue to execute for the...
2
319
by: simonZ | last post by:
Page.Server.ScriptTimeout =10000 No matter If I set Server.ScriptTimeout to larger values in code behind on page_load event, page is always executed in 90 seconds.? I don't have pool setted to recycle or something similar. Also I included the following line in web.config: <httpRuntime executionTimeout="1000"></httpRuntime> but nothing...
0
7580
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...
1
7634
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...
0
6244
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...
1
5481
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5208
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...
0
3634
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...
0
3618
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2079
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
0
916
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...

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.