You forgot something about yourself.
Summary:
ManagementAreaRegistration.cs
public class ManagementAreaRegistration : AreaRegistration { public override string AreaName { get { return "Management"; } } public override void RegisterArea(AreaRegistrationContext context) { context.MapRoute( "Management_default", "Management/{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = UrlParameter.Optional } ); } }
RouteConfig.cs
public static void RegisterRoutes(RouteCollection routes) { routes.MapRoute( "Default" // Route name , "{controller}/{action}/{id}" // URL with parameters , new { area = "management", controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults , new[] { "Portal.Web.Areas.Management.Controllers" } // Namespace of controllers in root area ); }
You set Portal.Web.Areas.Management when it should be Portal.Web.Areas.Management.Controllers , also there is no default area = "management" : area = "management"
source share