Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script Time Out

Status
Not open for further replies.

A1Pat

IS-IT--Management
Jun 7, 2004
454
US
Hello,

I'm creating a upload page where I can upload my pictures to my web server without using FTP.

I'm getting this error message seems to be self explainable; however, I don't know where to fix that problem.
-----
Active Server Pages error 'ASP 0113'

Script timed out

/admin/upload_exec.asp

The maximum amount of time for a script to execute was exceeded. You can change this limit by specifying a new value for the property Server.ScriptTimeout or by changing the value in the IIS administration tools.
-----
I also added this line Server.ScriptTimeout=200 to increase the timing, but no help.

Thanks.
 
You could just go directly into IIS and change the settings there. Once in IIS, go to your site, then Configuration. Choose the Options tab and change the ASP Script Timeout to whatever you want it to be. (This is for IIS 5.1, but IIS 6.0 should be similar if that is what you have.)

------------------------------------------------------------------------------------------------------------------------
"Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."
- Winston Churchill
 
Thanks Chopstik for your reply; but, how can I change the setting in the server hosted by someone else.

thanks!
 
You should be able to contact the host and ask them to change it for your site. Admittedly, though, I've not had to deal with this issue so I'm not sure how it works or how accommodating they may (or may not) be.

Out of curiosity, where did you put your Server.ScriptTimeout command in your page? That may also help to see why it didn't work (as I would have thought it should).

------------------------------------------------------------------------------------------------------------------------
"Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."
- Winston Churchill
 
I stated the line of top right after <BODY>
 
That sounds like it should be ok. One more curious question (better to eliminate the probable and then whatever is left can be dealt with accordingly) - is this the same page where you are running the script? For that matter, can you post the relevant code to see if something stands out there (since based on your description it should work)? Thanks.

------------------------------------------------------------------------------------------------------------------------
"Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."
- Winston Churchill
 
Yes.
I created 2 pages namely upload.asp and upload_exec.asp.

In the upload.asp, I have a form where I can browse and select file to upload, and hitting submit will take me to the upload_exec.asp file, which is where the Server.ScriptTimeout is located.

It is weird to me because I first could upload 5 files at a time, then it stop working from there. I don't know whether there is something else taking up bandwidth like database used to do when I forgot to close recordset.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top