|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("http://127.0.0.1/index.cfm");
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.