You have to tell ASP.NET WebApi (or Nancy – which is abandoned now) to ignore *.wx requests. Otherwise their api router takes over. With ASP.NET WebApi simply add this to RouteConfig.RegisterRoutes:
public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{*.wx}"); // <- ADD THIS routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } ); }
Please login first to submit.