title: MVC 3 Area route not working
body: <p>I created a Area in my MVC 3 application called 'Blog'.</p>
  
  <p>In global.asax I have the following code.</p>
  
  <pre><code>public static void RegisterRoutes(RouteCollection routes)
      {
          routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  
          routes.MapRoute(
              "Default", // Route name
              "{controller}/{action}/{id}", // URL with parameters
              new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
          );
      }
  
      protected void Application_Start()
      {
          AreaRegistration.RegisterAllAreas();
  
          RegisterGlobalFilters(GlobalFilters.Filters);
          RegisterRoutes(RouteTable.Routes);
  
      }
  </code></pre>
  
  <p>This is the code of my Area</p>
  
  <pre><code>public class BlogAreaRegistration : AreaRegistration
  {
      public override string AreaName
      {
          get { return "Blog"; }
      }
  
      public override void RegisterArea(AreaRegistrationContext context)
      {
          context.MapRoute(
              "Blog_default",
              "Blog/{controller}/{action}/{id}",
              new { action = "Index", id = UrlParameter.Optional }
          );
      }
  }
  </code></pre>
  
  <p>When I go to the following url <a href="http://localhost/CMS/blog">http://localhost/CMS/blog</a> I get the following error.</p>
  
  <blockquote>
    <p>The view 'Index' or its master was not found or no view engine supports the searched locations. The following locations were searched:
    ~/Views/blog/Index.aspx
    ~/Views/blog/Index.ascx
    ~/Views/Shared/Index.aspx
    ~/Views/Shared/Index.ascx
    ~/Views/blog/Index.cshtml
    ~/Views/blog/Index.vbhtml
    ~/Views/Shared/Index.cshtml
    ~/Views/Shared/Index.vbhtml</p>
  </blockquote>
  
  <p>How do I solve this?</p>