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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Manas MohapatraPosted May 27, 2017, 6:13 AM
Naveen BishtPosted May 26, 2017, 10:04 AM
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 MohapatraPosted May 26, 2017, 9:20 AM