I have created the following MapRoute function. And it's being called right from Application_Start() in Global.asax.
public static class RouteConfig
{
public static void RegisterRoutes( RouteCollection routes )
{
routes.MapRoute(
name: "TestMe",
url: "TestMe.axd",
defaults: new { controller = "Access", action = "SignOn" }
);
}
}
While I can access the specific controller if I use
http://localhost/TestSite/Access/SignOn,
I can't access it with this URL.
http://localhost/TestSite/TestMe.axd.
Can someone please point out what I am missing here?
Many thanks!!