mvc路由不起作用

时间:2016-03-10 08:36:17

标签: asp.net-mvc routes

我在RouteConfig中有两条路线

 routes.MapRoute(
          name: "Default",
          url: "{culture}/{controller}/{action}/{id}",
          defaults: new { controller = "Desktop", action = "Index", wizard = "", culture = "he-IL", id = UrlParameter.Optional }
          );

        routes.MapRoute(
            name: "Wizard",
            url: "{wizard}/{culture}/{controller}/{action}/{id}",
            defaults: new { controller = "Desktop", action = "Index", wizard = "AllManufucturer", culture = "he-IL", id = UrlParameter.Optional }
        );

我正试图导航到

    正在运作的
  1. http://localhost:5754/he-IL/Account/Login
  2. http://localhst:5754/wizard234/he-IL/InfoRequest/Details无效
  3. 我尝试更改路由顺序,链接1不起作用,链接2正常工作,我希望网站将运行两个不同的路由模板

    请问我错过了什么?

    坦克你先进

0 个答案:

没有答案