How do I get ASP.NET WebForms Routing to route .asmx JSON calls properly?
问题 I am attempting to implement multi-tenancy in a legacy ASP.NET WebForms app. I want the URL to indicate the proper client, like so: http://example.com/client_name/Default.aspx http://example.com/client_name/MyWebService.asmx However, I cannot get it to route the .asmx's properly. This routing rule picks up all incoming urls just fine: routes.Add("ClientSelector", new System.Web.Routing.Route ( "{client}/{*path}", routeHandler: new ClientRoute() )); But I am having issues with handling .asmx