Just created a new MVC 4 project and copied over some areas from an MVC 3 project. I have double checked all my web.configs and arearegistration.cs. My configs all point to the correct versions of razor and MVC and my routes.MapRoute signature includes the correct namespace parameters, I also checked and made sure my IIS pool was not hosting more than one MVC app.
my Global.asax file...
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = UrlParameter.Optional }, // Parameter defaults
new string[] { "MVCProject.Web.Controllers" }
);
my area registration files...
context.MapRoute(
"Admin_default",
"Admin/{controller}/{action}/{id}",
new { controller = "Home", action = "Index", id = UrlParameter.Optional },
new string[] { "MVCProject.Web.Areas.Admin.Controllers" }
);
and ...
context.MapRoute(
"Terminator_default",
"Terminator/{controller}/{action}/{id}",
new { controller = "Home", action = "Index", id = UrlParameter.Optional },
new string[] { "MVCProject.Web.Areas.Terminator.Controllers" }
);
I have checked everything I know to check to fix this , the correct dll's area loaded as well...