Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 27th, 2010, 01:36 AM
Authorized User
 
Join Date: Aug 2006
Location: , , .
Posts: 39
Thanks: 1
Thanked 0 Times in 0 Posts
Smile 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
  #2 (permalink)  
Old April 27th, 2010, 08:43 AM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

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.
================================================== =========
  #3 (permalink)  
Old April 27th, 2010, 03:11 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

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
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
  #4 (permalink)  
Old April 28th, 2010, 01:00 AM
Friend of Wrox
Points: 752, Level: 10
Points: 752, Level: 10 Points: 752, Level: 10 Points: 752, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2009
Posts: 165
Thanks: 5
Thanked 6 Times in 6 Posts
Default

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
__________________
Jack: Founder, Developer & Owner Of JackAndGenieForever.Com
  #5 (permalink)  
Old April 30th, 2010, 12:56 AM
Authorized User
 
Join Date: Aug 2006
Location: , , .
Posts: 39
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Imar View Post
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.
  #6 (permalink)  
Old May 1st, 2010, 03:32 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

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
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
nitinp (May 1st, 2010)
  #7 (permalink)  
Old May 1st, 2010, 11:49 AM
Authorized User
 
Join Date: Aug 2006
Location: , , .
Posts: 39
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thank you very much sir. I will try this way. ;)
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run/Stop SQLAgent johnnico SQL Server 2000 2 November 25th, 2005 01:56 PM
Apache Tomcat stop process my request chanmy8 Apache Tomcat 0 June 15th, 2005 07:07 PM
can we run session in out of process in Asp pradeep1976 BOOK: Beginning ASP 3.0 0 April 20th, 2005 03:56 AM
how to stop run of the project q8z Beginning VB 6 2 October 23rd, 2004 01:12 AM
Cannot stop the process mcinar SQL Server 2000 11 October 20th, 2004 07:39 AM



All times are GMT -4. The time now is 04:13 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.