title: How to redirect to an action method of another area within OnActionExecuting
body: <p>In My MVC5 application I have 3 areas. My project structure as following</p>
  
  <p><a href="https://i.stack.imgur.com/js7bS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/js7bS.png" alt="enter image description here"></a></p>
  
  <p>I have implemented an ActionFilter class to validate whether user has granted the permission for particular action methods. My ActionFilter class stay out of areas folder. I want to check user permission within the OnActionExecuting method and redirect to PermissionDenied action method which has implemented on ErrorControl. However it does not recognize within areas and gives an error message mentioning "No controller and action method found within the area"</p>
  
  <pre><code> public override void OnActionExecuting(ActionExecutingContext filterContext)
      {
  
  
          if(!GrantPermission(filterContext))
          {
              Controller contr = (BaseController)filterContext.Controller;
              filterContext.Result = new RedirectToRouteResult(
              new RouteValueDictionary {
                      { "area", "" },
                      { "controller",  "Error" },
                      { "action", "PermissionDenied" } 
              });
              filterContext.Result.ExecuteResult(contr.ControllerContext);
          }
  
          base.OnActionExecuting(filterContext);
  
  
      }
  </code></pre>
  
  <p>Can anyone help me to get this solved. this one already has ruined my day. </p>