MVC Route Map Got Exception on Html.RenderAction : No route in the route table matches the supplied values
问题 I use ASP.NET MVC 5 and this is My Route Map for all of the actions except Home/index : routes.MapRoute( name: "randomNumber", url: "{controller}/{randomNumber}/{action}", defaults: new { }, constraints: new { randomNumber = @"\d+" } ); And for first page: Home/Index I don't want to use {randomNumber} So the first solution I think is: routes.MapRoute( name: "Default", url: "{controller}/{action}", defaults: new { controller = "Home", action = "Index" } ); This route map solve my problem, but