title: run a website project on visual studio failed in local by http 404 not found page error
body: <p>I have been working on a project and I left it for about one week,when I came back to it and I tried to run the project with Ctr+F5 , it redirect to a URL which is not defined in route config. like this <code>http://localhost:53771/Views/Home/Index.cshtml</code>  and confronted with HTTP 404: not found Error. while my route config is like this BUT IT WORKS FINE IF I TYPE THE CORRET URL MYSELF in front of the r+F5 , it redirect to a URL which is not defined in route config. like this <code>http://localhost:53771</code></p>
  
  <pre><code> public static void RegisterRoutes(RouteCollection routes)
      {
          routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  
          routes.MapRoute(
              name: "Default",
              url: "{action}/{id}",
              defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
          );
  
          routes.MapRoute(
                 name: "Default2",
                 url: "{controller}/{action}/{id}",
                 defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
             );
      }
  </code></pre>
  
  <p>I started debugging the project and it seems the project never come to my <code>HomeController</code> . I just have one controller named Home, and when I removed all the codes of my Home controller it still act the same. and the other thing which it seems wrong, it creates the URL <code>http://localhost:53771/Views/Home/Index.cshtml</code> even before it comes to <code>RegisterRoutes</code> function. the problem is all local and here is my global.asax if needed. I appreciate any help </p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.Mvc;
  using System.Web.Optimization;
  using System.Web.Routing;
  
  namespace ML_Projectname
  {
      public class MvcApplication : System.Web.HttpApplication
      {
          protected void Application_Start()
          {
              MvcHandler.DisableMvcResponseHeader = true;
              AreaRegistration.RegisterAllAreas();
              FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
              RouteConfig.RegisterRoutes(RouteTable.Routes);
              BundleConfig.RegisterBundles(BundleTable.Bundles);
              MvcHandler.DisableMvcResponseHeader = true;
  
  
          }
  
  
  
          protected void Application_PreSendRequestHeaders(object sender, EventArgs e)
          {
              HttpContext.Current.Response.Headers.Remove("X-Powered-By");
              HttpContext.Current.Response.Headers.Remove("X-AspNet-Version");
              HttpContext.Current.Response.Headers.Remove("X-AspNetMvc-Version");
              HttpContext.Current.Response.Headers.Remove("Server");
  
          }
      }
  }
  </code></pre>