Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / March 2008

Tip: Looking for answers? Try searching our database.

Webservice drops multithread application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mr. Murdock - 26 Feb 2008 10:19 GMT
Hello,

I have a multithread method that calls a really long SP. It takes around 2
hours to run. this method is in a Webservice. I'm using Thread object to
control the multithread procedure and each thread creates it own data
connection to avoid connection already open exception.

It starts OK, runs for sometime and just drops. I have created a log
procedure to trace it and it looks like .NET is dropping the thread together
with the data connection.

I tried with other SPs and works fine but for this long one it doesn't.

Should I remove the Thread object and call the async webservice method
instead?
Could this be some kind of timeout?

Thank you
Mr. Murdock - 26 Feb 2008 13:11 GMT
I have tried increasing the webservice object timeout and execution timeout
(debug ='false') but It didn't work.

I don't receive any error messages.

> Hello,
>
[quoted text clipped - 14 lines]
>
> Thank you
John Saunders [MVP] - 26 Feb 2008 17:59 GMT
>I have tried increasing the webservice object timeout and execution timeout
> (debug ='false') but It didn't work.
[quoted text clipped - 19 lines]
>> instead?
>> Could this be some kind of timeout?

What is it that led you to believe that the thread is "just dropped"?

Also, web services are not appropriate for running any long-running task.
You should be using something like a Windows Service to run such a task,
perhaps triggered by the web service.
Signature

--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer

Mr. Murdock - 03 Mar 2008 15:38 GMT
Hello there,

IIS was running under a policy to remove threads on idle for longer than 20
mins.
I just has to create a new application pool without that rule.
Sorted.

Thanks

> >I have tried increasing the webservice object timeout and execution timeout
> > (debug ='false') but It didn't work.
[quoted text clipped - 25 lines]
> You should be using something like a Windows Service to run such a task,
> perhaps triggered by the web service.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.