Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Dealing with script timeout

Reply
Thread Tools

Dealing with script timeout

 
 
michal
Guest
Posts: n/a
 
      03-29-2007
hi guys,
i was wondering how you deal with script timeouts caused by huge file
uploads. Lets say I have a script timeout of 2 minutes and the user
uploads a file which takes more than this ...
Whats the best way to inform the user about this issue rather than
throwing the script timeout error.
What approaches do you use for this....

 
Reply With Quote
 
 
 
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      03-29-2007
michal wrote:
> hi guys,
> i was wondering how you deal with script timeouts caused by huge file
> uploads. Lets say I have a script timeout of 2 minutes and the user
> uploads a file which takes more than this ...
> Whats the best way to inform the user about this issue rather than
> throwing the script timeout error.
> What approaches do you use for this....


Ummmm ... increase the script timeout on the page that does the upload?
Search www.aspfaq.com for "timeout"
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


 
Reply With Quote
 
 
 
 
michal
Guest
Posts: n/a
 
      03-29-2007
ya i know that i could increase the script timeout but this seems not
a solution to me. because if i increase it to lets say 20 minutes and
then someone comes with an even bigger file (or slow connection) which
takes longer to upload then i have the same problem. and i am thrown
back to the start in increasing it again and again ...
i checkd aspfaq but they have no approaches for this problem.
do you have any other ideas?

 
Reply With Quote
 
Bob Lehmann
Guest
Posts: n/a
 
      03-29-2007
Q - I have to drive my car 100 miles, but I keep running out of gas because
I only keep up to 3 gallons of gas in my car, which gets 20 mpg. What can I
do?

A - Put 5 gallons of gas in your car.

Q - That won't work. What if I have to drive 120 miles some other time, or
140 miles? I'd have to keep putting more gas in the car.

A - Sell your car and ride the bus.

Bob Lehmann



"michal" <> wrote in message
news: ps.com...
> ya i know that i could increase the script timeout but this seems not
> a solution to me. because if i increase it to lets say 20 minutes and
> then someone comes with an even bigger file (or slow connection) which
> takes longer to upload then i have the same problem. and i am thrown
> back to the start in increasing it again and again ...
> i checkd aspfaq but they have no approaches for this problem.
> do you have any other ideas?
>



 
Reply With Quote
 
michal
Guest
Posts: n/a
 
      03-30-2007

so i am gonna buy a bus, just tell me where i can get one for my
problem

 
Reply With Quote
 
Anthony Jones
Guest
Posts: n/a
 
      03-30-2007

"michal" <> wrote in message
news: oups.com...
> hi guys,
> i was wondering how you deal with script timeouts caused by huge file
> uploads. Lets say I have a script timeout of 2 minutes and the user
> uploads a file which takes more than this ...
> Whats the best way to inform the user about this issue rather than
> throwing the script timeout error.
> What approaches do you use for this....
>


What's the maximum amount of time you are willing to put up with a user
trying to upload a file into your asp page?

Set your script timeout to that.



 
Reply With Quote
 
michal
Guest
Posts: n/a
 
      03-31-2007
yeah i know i can do this... so there is no real approach to tell the
user about the error?
oh i think i could catch all errors and check if the timeout error
happend. if this is the case i show a user friendly message...

On Mar 30, 1:36 pm, "Anthony Jones" <A...@yadayadayada.com> wrote:
> "michal" <mga...@gmail.com> wrote in message
>
> news: oups.com...
>
> > hi guys,
> > i was wondering how you deal with script timeouts caused by huge file
> > uploads. Lets say I have a script timeout of 2 minutes and the user
> > uploads a file which takes more than this ...
> > Whats the best way to inform the user about this issue rather than
> > throwing the script timeout error.
> > What approaches do you use for this....

>
> What's the maximum amount of time you are willing to put up with a user
> trying to upload a file into your asp page?
>
> Set your script timeout to that.



 
Reply With Quote
 
Anthony Jones
Guest
Posts: n/a
 
      03-31-2007

"michal" <> wrote in message
news: oups.com...
> yeah i know i can do this... so there is no real approach to tell the
> user about the error?
> oh i think i could catch all errors and check if the timeout error
> happend. if this is the case i show a user friendly message...
>


Do you mean a custom 500.100 error page?





 
Reply With Quote
 
michal
Guest
Posts: n/a
 
      04-01-2007
no i dont really need it because i should be able to do it with
on error resume next... have to try it the next time @ work.

On Mar 31, 9:46 pm, "Anthony Jones" <A...@yadayadayada.com> wrote:
> "michal" <mga...@gmail.com> wrote in message
>
> news: oups.com...
>
> > yeah i know i can do this... so there is no real approach to tell the
> > user about the error?
> > oh i think i could catch all errors and check if the timeout error
> > happend. if this is the case i show a user friendly message...

>
> Do you mean a custom 500.100 error page?



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dealing with signup bots with a Perl CGI script Joe Perl Misc 2 08-29-2005 10:43 PM
Timeout::timeout and Socket timeout Mark Probert Ruby 1 10-06-2004 09:30 AM
Session contents lost despite Session.Timeout = 3000; and <sessionState mode="InProc" cookieless="false" timeout="300"> Carpe Diem ASP .Net 3 02-23-2004 07:10 PM
web.config session timeout and forms authentication timeout Do ASP .Net 2 11-23-2003 02:27 PM
Re: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Bob Johnson ASP .Net 0 08-07-2003 12:52 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57