ScriptTimeOut.. ARGH!...

Microsoft VBScript runtime error '800a01c3'
Object not a collection: 'Server.ScriptTimeOut'
/cheats/view.asp, line 1


I dont really know how to use the ScriptTimeOut function.. so please could someone help me.. it was set to 300 seconds.. 5 minutes I think.. thanks!
LVL 1
DigitalSmashAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
david_levineConnect With a Mentor Commented:
I threw togethr a quick script. Here's the code...

<HTML>
<HEAD>
<TITLE>Experts-Exchange Test</TITLE>
</HEAD>
<BODY>
<%

server.scripttimeout = 300
response.write "This page can run for "
response.write server.scripttimeout
response.write " seconds before it time out.<p>"
%>

</BODY>
</HTML>


Here's the output...
This page can run for 300 seconds before it time out

How does it differ from yours?
0
 
robbertCommented:
Probably, you're trying to set;

Server.ScriptTimeOut(300)

The correct syntax is;

Server.ScriptTimeOut = 300

Or go to Start | Programs | WinNT 4 Option Pack | Internet Info Server | Internet Service Manager
Select your web site, right-click, Properties,
Tab Home Directory, Button Application Configuration, Tab App Options, ASP Script Timeout.

I bet your program is not OK, since you need such a large timeout. Any questions to that?
0
 
DigitalSmashAuthor Commented:
robbert.. I'll test that and probably give you the points.. thanx
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
david_levineCommented:
Just wondering, what did Robert post after me that would get him the points?
0
 
robbertCommented:
Sorry, I was offline for a longer time, and posted next to david_levine. He should get the points.
0
 
DigitalSmashAuthor Commented:
k.. not tested it but I'm sure it will work.. thanx, both.. points to dave then.
0
All Courses

From novice to tech pro — start learning today.