title: Why does not the Application_Start() event fire when I debug my ASP.NET MVC app?
body: <p>I currently have the following routines in my <code>Global.asax.cs</code> file:</p>
  
  <pre><code>public static void RegisterRoutes(RouteCollection routes)
  {
      routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
      routes.MapRoute(
          "Default",                                          
          "{controller}/{action}/{id}",                       
          new { controller = "Arrangement", action = "Index", id = "" }
      );
  }
  
  protected void Application_Start()
  {
      RegisterRoutes(RouteTable.Routes);
      // Debugs the routes with Phil Haacks routing debugger (link below)
      RouteDebug.RouteDebugger.RewriteRoutesForTesting(RouteTable.Routes);
  }
  </code></pre>
  
  <p><a href="http://haacked.com/archive/2008/03/13/url-routing-debugger.aspx" rel="noreferrer">Routing debugger</a>...</p>
  
  <p>When I hit <code>F5</code>, the application fires up and unless I have a view named <code>Index.aspx</code> in the <code>~/Views/Home/</code> folder, I get the "View missing" error message, although I have re-defined the default route and removed the <code>HomeController</code>. I would expect to get the routing debugger, and if not that at least a request for <code>~/Views/Arrangement/Index.aspx</code>.<br>
  A breakpoint on <code>RegisterRoutes(Routetable.Routes);</code> is never hit when debugging.</p>
  
  <p>I have tried building, rebuilding, restarting VS, cleaning, rebuilding again etc, but nothing seems to work. Why doesn't the application run the current version of the code?</p>