title: Asp.net Mvc areas routing issue
body: <p>I want default page of the site to be Login.cshtml. I get the Exception:</p>
  
  <blockquote>
    <p>Error: The view 'LogIn' or its master was not found or no view engine supports the searched locations. The following locations were searched:</p>
  </blockquote>
  
  <p>I have 2 areas. Structure is shown below.</p>
  
  <p><img src="https://i.stack.imgur.com/sbh2A.png" alt="enter image description here"></p>
  
  <p>My routeconfig is shown below.</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.Mvc;
  using System.Web.Routing;
  
  namespace Portal.Web
  {
  public class RouteConfig
  {
      public static void RegisterRoutes(RouteCollection routes)
      {
          routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  
          routes.MapRoute(
              name: "Default",
              url: "{controller}/{action}/{id}",
              defaults: new { controller = "Home", action = "LogIn", id =   UrlParameter.Optional },
              namespaces: new[] { "Portal.Web.Areas.Management" }
          );
      }
      }
  
  }
  </code></pre>
  
  <p>My global.asax.cs is shown below:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.Http;
  using System.Web.Mvc;
  using System.Web.Routing;
  
  namespace Portal.Web
  {
  // Note: For instructions on enabling IIS6 or IIS7 classic mode, 
  // visit http://go.microsoft.com/?LinkId=9394801
  public class MvcApplication : System.Web.HttpApplication
  {
      protected void Application_Start()
      {
          AreaRegistration.RegisterAllAreas();
  
          WebApiConfig.Register(GlobalConfiguration.Configuration);
          FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
          RouteConfig.RegisterRoutes(RouteTable.Routes);
      }
  }
  }
  </code></pre>
  
  <p>`Have you any advice?</p>