I have this in my route config
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url: "Accessibility/{controller}/{action}/{id}",
defaults: new { controller = "Cardholders", action = "Index", id = UrlParameter.Optional }
);
}
However, when I view my project in browser, it doesn't seem to redirect to the action that I have specified. It remains at http://localhost:54358/
which is probably why I'm getting the http error.
I have no problems viewing the page directly, e.g., browinsg it at http://localhost:54358/Accessibility/Cardholders/Index
What could be the issue here?