Thread time out

  • Thread starter Thread starter lekshmi
  • Start date Start date
L

lekshmi

Hi,

I have a thread which has to be alive for more than 2
hours. I had given the "<httpRuntime
executionTimeout=14400"> in the web.config
But still the thread is aborted after 1 hour. But the
same thread is running for 4 hours in some other server.
so in the first server i guess there is some other factor
which is dominant. what could be that?

Thanks,
Lekshmi
 
You are most likely having application restarts. When this happens, the app
domain is unloaded and that makes the running thread terminate.

--
Regards,
Alvin Bruney [Microsoft MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ http://www.lulu.com/owc
 
could you please explain it more?
-----Original Message-----
You are most likely having application restarts. When this happens, the app
domain is unloaded and that makes the running thread terminate.

--
Regards,
Alvin Bruney [Microsoft MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ http://www.lulu.com/owc
--------------------------------------------------------- -


lekshmi said:
Hi,

I have a thread which has to be alive for more than 2
hours. I had given the "<httpRuntime
executionTimeout=14400"> in the web.config
But still the thread is aborted after 1 hour. But the
same thread is running for 4 hours in some other server.
so in the first server i guess there is some other factor
which is dominant. what could be that?

Thanks,
Lekshmi


.
 
examine your event log on the machine in question. You are looking for
application restart notifications. If you see these notifications, then it
means your application has been forcibly shut down by the run-time and you
threads have gone to the great beyond. Otherwise the problem lies somewhere
else. But it is important to eliminate this possibility first.

--
Regards,
Alvin Bruney [Microsoft MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ http://www.lulu.com/owc
----------------------------------------------------------


could you please explain it more?
-----Original Message-----
You are most likely having application restarts. When this happens, the app
domain is unloaded and that makes the running thread terminate.

--
Regards,
Alvin Bruney [Microsoft MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ http://www.lulu.com/owc
--------------------------------------------------------- -


lekshmi said:
Hi,

I have a thread which has to be alive for more than 2
hours. I had given the "<httpRuntime
executionTimeout=14400"> in the web.config
But still the thread is aborted after 1 hour. But the
same thread is running for 4 hours in some other server.
so in the first server i guess there is some other factor
which is dominant. what could be that?

Thanks,
Lekshmi


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top