Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have some problems with an SPLongOperation throwing a ThreadAbortedException. All the results I get when I google it are when people execute the operation.End() method. With me this is not the case; it occurs randomly after an unknown period of time. Apparently SPLongOperation has a maximum runtime, although I cannot find it anywhere documented.

Can anyone confirm this? This is how we use the SPLongOperation:

  1. Click "Send" button op webpage
  2. Make an a-synchronous callback call (and redirect right after)
  3. Start an SPLongOperation (note: I know this is not what it is designed for, using it async, but it's the way me predecessor created it and I cannot easily get rid of it)
  4. In the operation, I use a for-loop to start Sharepoint workflows
  5. After a certain amount of time, the for-loop is cut off by a ThreadAbortedException; it depends on the current speed of the server how many workflows have been started and how many have been skipped by the exception)

Some advice would be really appreciated!

Thanks in advance!

-Edit- Could it be that it has nothing to do with SPLongOperation itself, but the httpRuntime attribute in web.config?

share|improve this question
By design: dotnetfollower.com/wordpress/2011/08/… – Hans Passant Sep 27 '12 at 14:16

migrated from stackoverflow.com Sep 30 '12 at 23:28

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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