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:
- Click "Send" button op webpage
- Make an a-synchronous callback call (and redirect right after)
- 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)
- In the operation, I use a for-loop to start Sharepoint workflows
- 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?