I am having a problem with an Area route in MVC 5. When I browse to /Evernote/EvernoteAuth I get a 404 resource cannot be found error.
My area looks like this:
Be careful with AreaRegistration.RegisterAllAreas(); inside Application_Start method.
If you put AreaRegistration.RegisterAllAreas() to be last inside Application_Start that will not work.
Put AreaRegistration.RegisterAllAreas() to be first and routing will be successfully executed..
Example:
protected void Application_Start(object sender, EventArgs e)
{
AreaRegistration.RegisterAllAreas(); //<--- Here work
FilterConfig.Configure(GlobalFilters.Filters);
RouteConfig.Configure(RouteTable.Routes);
AreaRegistration.RegisterAllAreas(); //<--- Here not work
}