Reprinted from Http://www.cnblogs.com/insus/p/3658752.html
In the company's internal servers, many Web sites (applications) are running, but each site has automated or timed transactions. Later, all of these automated or timed transactions are moved to a separate site (ASP). This site, as long as the server is not shutdown, restart. It lasts forever.
This site is to go to service nature, basically no one to visit. However, there is a problem with the ASP. Application will stop until someone accesses it and start again if the site defaults to 20 minutes without a request.
How do you manage to keep it from stopping? Insus.net Reference Online A lot of ways (standing on the shoulders of giants), sorting out a piece of code, the problem finally solved: in the Global.asax void Application_End (object sender, EventArgs e) method, Paste the following related code:
For more information, refer to article http://weblogs.asp.net/scottgu/archive/2009/09/15/ Auto-start-asp-net-applications-vs-2010-and-net-4-0-series.aspx
How to keep an ASP. NET site site from ever-ending continuous operation