Area Route Conflicts

防止相同名字的controller冲突,可以在配置路由的时候添加命名空间:

routes.MapRoute(
    "Default",
    "{controller}/{action}/{id}",
    new { controller = "Home", action = "Index", id = "" },
    new [] { "AreasDemoWeb.Controllers" }
);
原文地址:https://www.cnblogs.com/yk00/p/2949986.html