Search code examples
asp.net-mvcmaproute

MapRoute not working, URL still says page not found?


Maybe I am confused here but I am trying to go to http://ryan.local.myappname.com/Order

other things such as /Home work and I checked and found this routes.MapRoute thing and added this:

routes.MapRoute("Order", "Order", new { controller = "Order", action = "Index" });

But it still says page not found... what the dealio?


Solution

  • Try this:

    routes.MapRoute(
                "Order",                                              
                "{controller}/{action}",                           
                new { controller = "Order", action = "Index"}  
            );