How to keep an ASP. NET site site from ever-ending continuous operation

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.