none
Attribute routing not working in MVC RRS feed

All replies

  • Add a call to routes.MapMvcAttributeRoutes() method with in RegisterRoutes() method of RouteConfig.cs file

    public class RouteConfig
    {
     public static void RegisterRoutes(RouteCollection routes)
     {
     routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
     
     //enabling attribute routing
     routes.MapMvcAttributeRoutes();
     }
    }

    Monday, July 8, 2019 4:12 PM
  • https://exceptionnotfound.net/attribute-routing-vs-convention-routing/

    Maybe, you should go over the basics again.

    ASP.NET MVC has a forum in ASP.NET forums.

    http://forums.asp.net/

    Monday, July 8, 2019 4:18 PM