title: asp.net mvc route entry for web site root request
body: <p>I can't work out how to direct asp.net mvc to the desired controller for a request to my site's root.</p>
  
  <p>I've tried lots of different entries in RegisterRoutes including:</p>
  
  <pre><code>routes.MapRoute(
       "MyHome",
        "",
        new { controller = "MyController", action = "Index", id = UrlParameter.Optional }
   );
  </code></pre>
  
  <p>The error I get is:</p>
  
  <p>The view 'Index' or its master was not found or no view engine supports the searched locations. The following locations were searched:
  ~/Views/Home/Index.aspx
  ~/Views/Home/Index.ascx
  ~/Views/Shared/Index.aspx
  ~/Views/Shared/Index.ascx
  ~/Views/Home/Index.cshtml
  ~/Views/Home/Index.vbhtml
  ~/Views/Shared/Index.cshtml
  ~/Views/Shared/Index.vbhtml </p>
  
  <p>How can I get web site root requests going to the desired controller?</p>
  
  <p>Update: Still couldn't fix the issue so created a new MVC project which worked out of the box. I did rename the original project a couple of times so perhaps that screwed things up somewhere.</p>