Last post Jan 06, 2011 12:44 AM by sirdneo
Jan 05, 2011 04:35 PM|schauhan13|LINK
I read somewhere the website quits running after sometime if no one pings it. I wanted to know is there any way on IIS 6 that will keep the website up all the time(alive) even if no one accesses it
Jan 05, 2011 06:37 PM|AceCorban|LINK
IIS likely does this to free up resources that are being monopolized by idle processes. I would actually hope there is no way around this. If this was possible, and every developer did it, webhosts would constantly have to be restarted becuase of memory
faults or other problems.
There are likely work-arounds, like storing information and using the Application_Start method in Global.asax to retrieve that information. What is it that you are trying to accomplish?
Jan 06, 2011 12:44 AM|sirdneo|LINK
Your application restarts because at some point IIS will close your worker process due to IDEL time or memory limit. I do not recommend to disable those because that will effect your website's performance.
There is a small workaround mentioned by Scott in this post. i.e. on Application_End event he has called a website's page so, whenever site goes down by IIS, Ping function ensures that site is up again:-