title: MVC Controller looks for an aspx page by default
body: <p>I have a solution with one web application which contains Models and Views and the Controllers in a separate class library. I have Razor views in my views folder. When I type in the url (e.g. Home/Index) the constructor correctly finds the correct view index.cshtml, however If If don't enter the actions name, I get an error stating that the Resource can't be found and the requested url is  /Home/index.aspx. </p>
  
  <p>How can I make the constructor look for razor views by default. My route config is just the standard default one.</p>
  
  <pre><code> public static void RegisterRoutes(RouteCollection routes){
  
          routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  
          routes.MapRoute(
                  name: "Default",
                  url: "{controller}/{action}/{id}",
                  namespaces: new[] { "MyProject.Controllers" },
                  defaults: new { action = "Index", id = UrlParameter.Optional }
              );
      }
  </code></pre>
  
  <p>except I have a reference to the Controllers namespace.</p>
  
  <p>Thanks</p>