routes.MapRoute(
"top", // Route name
"{controller}/Casestudy/{action}"
);
Anyone know why this routing doesn’t resolve to;
/Auction/Casestudy/ABC/
The controller Auction is there, the Action ABC is there and the view is there?
My guess is that you put your
"top"route after your"Default"route (provided you didn’t change that call toMapRoute()).You need to ensure that your
"top"route appears before you Default route, otherwise your"Default"route will surely match your tested URL and deliver a 404.If those are switched up and your
"Default"route comes first, then you’ll have your route matching the"Default"route withcontroller = "Auction", action = "Casestudy", id = "ABC". Which is obviously not the intention.