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

 

相关文章:

  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2021-07-18
  • 2021-07-30
  • 2021-11-21
猜你喜欢
  • 2021-05-03
  • 2022-12-23
  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
  • 2021-04-08
  • 2021-05-17
相关资源
相似解决方案