SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a webpart that allows users to upload videos to YouTube. In testing, we were able to exceed the script timeout. I believe the default is 120 seconds.

Can this setting be changed / accommodated inside the web part, or can this only be changed in the web.config?

share|improve this question
up vote 3 down vote accepted

Use SPLongOperation for this kind of stuff:

share|improve this answer
Yes, thanks, I've seen that technique mentioned. Unfortunately this is for a branding site - and I doubt the client would be happy with that dialog. Can the dialog be changed? – ScottE Jan 19 '12 at 16:20
This looks a little more fine-grained… – ScottE Jan 19 '12 at 16:24
Yep, that's how you would have to the change the dialog, by inheriting that class. – James Love Jan 19 '12 at 18:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.