Application Server Solutions for Microsoft IIS and ASP.NET
       solutions   products   partners   company   support   downloads         store
ServletExec Self-Help: FAQ
Back to Search >  Back to Search Results

Faq ID 358
Product BlueDragon
Category General Info
Question The application pool that BD.NET runs under is configured to shutdown under certain conditions. On low traffic sites this causes things like scheduled tasks to not run until the site receives another request. Is there a way around this problem?
Answer The best solution is to configure the application pool to not shutdown under certain conditions. This is done by right-clicking on the application pool and selecting properties. On the Recycling tab, uncheck the first three check boxes. On the Performance tab, uncheck the Idle timeout check box.

You can also place the following code in the Application_End() method of global.asax so when BD.NET is shutdown it will immediately be brought back up:

  System.Net.HttpWebRequest req = (System.Net.HttpWebRequest)System.Net.WebRequest.Create("");

  System.Net.HttpWebResponse rsp = (System.Net.HttpWebResponse)req.GetResponse();


Note that the above change will only help with application pool recycles. If the machine is restarted then the site won't come back up until it receives a request. The workaround for this is to create a Windows scheduled task that runs at start up time and sends a request to the site.

company media information terms of use privacy policy contact us