Hello
Attribute routing all steps are done in VS2015 but showing error 404, page/ resource not found while i have alrady done setting in route.config to enable it.
Hello
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Manas MohapatraRank #182 · 13.2K reputationPosted May 26, 2017, 5:20 AM EDT
Naveen BishtRank #1,462 · 1.1K reputationPosted May 26, 2017, 6:04 AM EDT
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
//Add the following line of code
routes.MapMvcAttributeRoutes();
//[Code Excerpt]
}
}
Manas MohapatraRank #182 · 13.2K reputationPosted May 27, 2017, 2:13 AM EDT