CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Upload timeout

Print topic Send  topic

Author Message
wilco_wings


Posts: 11
Posted: 12/02/2004, 8:42 AM

Hi,

I made an upload page that works. But when I want to upload large files I get the following error.... Does anyone know how to solve it?

Active Server Pages error 'ASP 0113'

Script timed out

/dnld/admin/upload.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.

Active Server Pages error 'ASP 0113'

Script timed out

/dnld/admin/upload.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.
View profile  Send private message
dataobjx


Posts: 181
Posted: 12/02/2004, 9:18 AM

Place this in the AfterInitialize event

Server.ScriptTimeout = 1000

Keep increasing the number according to your needs.
_________________
www.DataObjx.net
www.mydigitalapps.com
View profile  Send private message
peterr


Posts: 5971
Posted: 12/02/2004, 11:48 AM

Your error message provides 2 solutions.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
wilco_wings


Posts: 11
Posted: 12/02/2004, 1:57 PM

I read that but How to do that peterr?

I have no access to the IIS Admin!

And for that solotion of dataobjx... i can't find an afterinitialize event in the record form and in the upload controll properties.

View profile  Send private message
mrachow


Posts: 509
Posted: 12/02/2004, 2:03 PM

After Initialize is a page event.
Right click on page and choose properties
_________________
Best regards,
Michael
View profile  Send private message
wilco_wings


Posts: 11
Posted: 12/02/2004, 2:46 PM

Thanks mrachow found it.

I tried to upload a file about 24mb after +/- 5 minutes I get the error again... even with te add code in the afterinitialize event....

<%
'BindEvents Method @1-90ADDF24
Sub BindEvents()
Set CCSEvents("AfterInitialize") = GetRef("Page_AfterInitialize")
End Sub
'End BindEvents Method

Function Page_AfterInitialize() 'Page_AfterInitialize @1-1E3DE16C

'Custom Code @13-73254650
' -------------------------
Server.ScriptTimeout = 99999999
' -------------------------
'End Custom Code

End Function 'Close Page_AfterInitialize @1-54C34B28


%>
View profile  Send private message
peterr


Posts: 5971
Posted: 12/02/2004, 3:23 PM

Maybe you didn't put this code in the same page that is used for uploading? Did you publish the page?
Just to be sure, edit the file Common.asp on your Web server and put "Server.ScriptTimeout = 3600" somewhere at the top of that file.
If this fixes the problem then work your way back by analyzing why the code might've not been working in your page.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
wilco_wings


Posts: 11
Posted: 12/02/2004, 3:48 PM

I'm 100% sure this is the rught page cause this is the only one.

Could it have something to do with using.... ASP/VBScript Upload using ADODB.Stream instead of using something like Persits?
View profile  Send private message
peterr


Posts: 5971
Posted: 12/02/2004, 11:32 PM

I don't know. However, if the steps that I described fix your problem then the answer is "No".
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
wilco_wings


Posts: 11
Posted: 12/03/2004, 2:15 PM

Thanks... With "Server.ScriptTimeout = 3600" it works great!!!
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.