Please show what you're doing in 'CallAllMethods' - why does that return before all WebService calls are finished? Do you issue 12 async calls in parallell and then just return? If so, there are many ways to synchronize and wait for them to all finish -
the most obvious simply waiting for all the WaitHandles in the IAsyncResults from the async calls. If they're called synchronlously something else than what you think is actually causing the error.
By the way - if you're calling 12 web services in one request, you should really, really consider running your page in async mode.
Svante
AxCrypt - Free Open Source File Encryption & Online Password Manager - http://www.axantum.com [Disclaimer: Code snippets usually uncompiled, beware typos.]
______
Don't forget to click "Mark as Answer" on the post(s) that helped you.
Svante
All-Star
18347 Points
2300 Posts
Re: execute 1 method after another method has finished
May 04, 2007 05:06 PM|LINK
Please show what you're doing in 'CallAllMethods' - why does that return before all WebService calls are finished? Do you issue 12 async calls in parallell and then just return? If so, there are many ways to synchronize and wait for them to all finish - the most obvious simply waiting for all the WaitHandles in the IAsyncResults from the async calls. If they're called synchronlously something else than what you think is actually causing the error.
By the way - if you're calling 12 web services in one request, you should really, really consider running your page in async mode.
AxCrypt - Free Open Source File Encryption & Online Password Manager - http://www.axantum.com
[Disclaimer: Code snippets usually uncompiled, beware typos.]
______
Don't forget to click "Mark as Answer" on the post(s) that helped you.