asp.net MVC webservice 报次错解决方法

asp.net  MVC  webservice  报次错解决方法:

解决方法:

在 RouteConfig.cs 

   

  public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{*x}", new { x = @".*.asmx(/.*)?" }); 
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
            routes.MapRoute(
                name: "Default",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
            );
           
        }
原文地址:https://www.cnblogs.com/laopo/p/5144872.html