I\'m trying to set the Default URL of my MVC application to a view within an area of my application. The area is called \"Common\", the controller \"
In the Global.asax delete the .MapRoute
and make it look like
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
}
then under the area's yourareaAreaRegistration.cs (its there if you added the area through VS)
public override void RegisterArea(AreaRegistrationContext context)
{
//This is the key one
context.MapRoute("Root", "", new { controller = "Home", action = "Login" });
//Add more MapRoutes if needed
}