Link to home
Start Free TrialLog in
Avatar of nzayid2
nzayid2

asked on

Maximum value for Server.ScriptTimeout

Does anyone know what the Maximum value for Server.ScriptTimeout is?

Thanks,
Nader
Avatar of jitganguly
jitganguly

According to MSDN - The default value is 90 seconds.
ASKER CERTIFIED SOLUTION
Avatar of CJ_S
CJ_S
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nzayid2

ASKER

Thanks but,

Actually what I need to know is the maximum valid value that I can use.
Avatar of nzayid2

ASKER

Thanks but,

Actually what I need to know is the maximum valid value that I can use.
Avatar of nzayid2

ASKER

Thanks CJ S,

I'll go ahead and try that.

The ScriptTimeout property specifies the maximum amount of time a script can run before it is terminated.

The timeout will not take effect while a server component is processing

>>Actually what I need to know is the maximum valid value that I can use

Are you getting script timed out error ? Don't think increasing this will solve your problem.
Probably you have long SQL/DB process and server can not interpret properly.
Try to run the SQL in interactive mode and see the results. If possible put some filters
Lets see the code
?
:-)
Glad to help!

CJ
Could you please explain why did you accept his comment ?
Avatar of nzayid2

ASKER

Sure,

Actually jitganguly, what you said is completely correct, and I've found that to be useful is many cases. However in this particular case we were trying to download a huge file, we were not running any SQL commands, so that was not the source of our slowdown in this particular case.

There are probably better ways of handling what we wanted to do today however it became more of a curiosity issue regarding what the maximum amount of time ASP will allow a script to run, being that we could not find the answer in any of our books or on the net.

The answer CJ_S provided us with was exactly what we were looking for and also made complete sense, the only way that the answer he provided would not be the correct value is if Microsoft limited the value when creating the object which is possible but probably most likely not the case.
But in any case thank you for your time, to answer your question your answer was not incorrect it's just that the answer CJ_S provided us was exactly what we were looking for.