S
Secret Squirrel
Hi,
I have a web service in .net which does 2 things:
1) save some data that is sent as params to the web service
2) a second web service with the same params, get the results, and save
them to the database too.
now step 2) could take a while, so I want the WS to run step 2
asynchronously. I tried creating a method to run step 2, created a
MethodInvoker with it, and call it thru the MethodInvoker.BeginInvoke
to run it asynchronously, but I get an error in the bowls of the
asynchronously run method:
Error in async process Thread was being aborted
What is the solution? Can I not run an asynchronous process from a web
service? Is there some other way to run an asynch process from a WS
that would work? Any ideas?
I can see changing step 2 to a WS and having my first WS call the 2nd
asynchronously... But what I am already doing seems like it should
work?
Thanks,
Jon Paugh
I have a web service in .net which does 2 things:
1) save some data that is sent as params to the web service
2) a second web service with the same params, get the results, and save
them to the database too.
now step 2) could take a while, so I want the WS to run step 2
asynchronously. I tried creating a method to run step 2, created a
MethodInvoker with it, and call it thru the MethodInvoker.BeginInvoke
to run it asynchronously, but I get an error in the bowls of the
asynchronously run method:
Error in async process Thread was being aborted
What is the solution? Can I not run an asynchronous process from a web
service? Is there some other way to run an asynch process from a WS
that would work? Any ideas?
I can see changing step 2 to a WS and having my first WS call the 2nd
asynchronously... But what I am already doing seems like it should
work?
Thanks,
Jon Paugh