title: ASP.NET MVC [Authorize] from controller in area can't find Account/Login ActionResult in root folder
body: <p>I'm trying to setup admin logins for my MVC site. I have an area called Admin with a controller called <code>ControlPanel</code>. I've placed the <code>[Authorize]</code> attribute above the <code>ControlPanel</code> Controller declaration. When I make a call to the index of that controller I get an error saying </p>
  
  <blockquote>
    <p>it can't find the Account/Login resource.</p>
  </blockquote>
  
  <p>The <code>AccountController</code> is stored in the root's 'Controllers' folder. The view exists in the root's 'Views' folder.</p>
  
  <p>My <code>AdminAreaRegistration</code> class:</p>
  
  <pre><code>public class AdminAreaRegistration : AreaRegistration
  {
      public override string AreaName
      {
          get
          {
              return "Admin";
          }
      }
  
      public override void RegisterArea(AreaRegistrationContext context)
      {
          context.MapRoute(
              "Admin_default",
              "{area}/{controller}/{action}/{id}",
              new { area="Admin", action = "Index", id = UrlParameter.Optional }
          );
      }
  }
  </code></pre>
  
  <p>My <code>RouteConfig</code> class:</p>
  
  <pre><code>public class RouteConfig
  {
      public static void RegisterRoutes(RouteCollection routes)
      {
          routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  
          routes.MapRoute(
              name: "Default",
              url: "{area}/{controller}/{action}/{id}",
              defaults: new { area = "", controller = "Startup", action = "Index", id = UrlParameter.Optional }
          );
      }
  }
  </code></pre>
  
  <p>Thanks in advance</p>