asp.net mvc4 添加分区出现错误 找到多个与名为“home”的控制器匹配的类型

在RouteConfig文件中添加命名空间可解决
 
routes.MapRoute(
                name: "Default",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional },
                namespaces: new string[] { "Letter.Web.Controllers" }
            );

 

 

 

http://blog.csdn.net/make1828/article/details/44176273

posted on 2015-08-14 14:13  扶强  阅读(163)  评论(0)    收藏  举报