 |
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|

April 27th, 2010, 01:36 AM
|
Authorized User
|
|
Join Date: Aug 2006
Posts: 39
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
How long a .Net process can run without stop
Hello,
I have a web page with infinite loop, I want it to run continuously to do some operations. Dont know why does it stop after few hours, though I've put try-catch everywhere in code. Is there any limit of web page process to run. Any suggestions?
Thanks
Nitin
|

April 27th, 2010, 08:43 AM
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
|
|
There are no limitations in the running time.. In fact usually servers works 24/7 without a fault.. Maybe there is a problem in the code?? some memory problems??
What error code you receive?? or the server just froze???
__________________
HTH
Gonzalo
================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the proof.
================================================== =========
|

April 27th, 2010, 03:11 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Quote:
In fact usually servers works 24/7 without a fault
|
I think the OP is referring to a single page, not to the service itself.
Nitin: ASP.NET is not meant for these kind of long running tasks. For example, your IIS domain could be recycled which means your page is stopped as well. What's the page doing exactly? There may be (and likely are) better alternatives.
Cheers,
Imar
|

April 28th, 2010, 01:00 AM
|
Friend of Wrox
|
|
Join Date: Sep 2009
Posts: 165
Thanks: 5
Thanked 6 Times in 6 Posts
|
|
Hello There,
code executes when ever they have free memory. Running a while loop continuously will full your buffer or stack memory very rapidly and you are saying that it stops after few hours, that is very long time for a loop to execute and surely they are filling stack / buffer and hence no memory to execute so it stops executing any longer
hope it helps.
Regards,
Jack
|

April 30th, 2010, 12:56 AM
|
Authorized User
|
|
Join Date: Aug 2006
Posts: 39
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by Imar
Nitin: ASP.NET is not meant for these kind of long running tasks.
|
Sir, Actually I want to run a client/server listner program, where many clients will keep sending data at 24/7 pattern and server will catch it and then store in database. I planed to have a windows service or .exe but the hosting server refused to allow us to install such things, thats why I developed a web page for the same.
Pls help.
|

May 1st, 2010, 03:32 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
In that case, you may want to look into service technologies, such as ASP.NET Web Services or WCF (Windows Communication Foundation). WCF is designed to handle requests 24/7 overm, for example, the web.
Cheers,
Imar
|
The Following User Says Thank You to Imar For This Useful Post:
|
|

May 1st, 2010, 11:49 AM
|
Authorized User
|
|
Join Date: Aug 2006
Posts: 39
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Thank you very much sir. I will try this way. ;)
|
|
 |