在webconfig.xml中重写老报报错
必须在对应的AreaRegistration.cs文件中注册路由
context.MapRoute( "areaIndex", "area1", new { controller = "area1", action = "Index"}, new string[] { "CMS.Areas.area1.Controllers" } );
本文共 319 字,大约阅读时间需要 1 分钟。
context.MapRoute( "areaIndex", "area1", new { controller = "area1", action = "Index"}, new string[] { "CMS.Areas.area1.Controllers" } );
转载于:https://my.oschina.net/momomo1987/blog/871538