How to register Area in ASP.NET MVC?

Before working with area, make sure you have registered your area with in the Application_Start method in Global.asax as shown below.

protected void Application_Start()
{
  //Register all application Areas
  AreaRegistration.RegisterAllAreas();
}

Always remember the order of registering the Areas must be on top, so that all of the settings, filters and routes registered for the applications will also apply on the Areas.

Tagged , . Bookmark the permalink.

Leave a Reply