Web api interface works locally but not on Azure Web api interface works locally but not on Azure asp.net asp.net

Web api interface works locally but not on Azure


Switch the order of routes and try again.

        GlobalConfiguration.Configuration.Routes.MapHttpRoute(            name: "ActionApi",            routeTemplate: "api/{controller}/{action}/{id}",            defaults: new { id = RouteParameter.Optional }        );        GlobalConfiguration.Configuration.Routes.MapHttpRoute(            name: "DefaultApi",            routeTemplate: "api/{controller}/{id}",            defaults: new { id = RouteParameter.Optional }        };