I'm building an asp.net MVC 2 application that has a ping page to let another system know if the application is up and running. I believe this is also used to keep the load balancer aware of active nodes. Here's what I have in my controller's action.
 public ActionResult PingApp()
            {
                // If we get here this node is alive. Echo "Ok".
                return Content("OK");
            }
I do not believe it is working correctly because when I start or restart the application there a lot of other tasks that need to be set up before the app is truly ready and "OK". (ie, loading dll's, precompiling aspx pages etc.. if I understand things correctly).  I'm using IIS 7.  Does anyone know how I might check and see if IIS and My application is truly "ready".
   - Thanks.
 
     
     
    