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 }
            );
           
        }

 

posted @ 2016-01-20 13:32  每天进步一点点!  阅读(409)  评论(0编辑  收藏  举报