Handlers returns 404 error on IIS7.5 integrated pipeline

后端 未结 4 1581
醉梦人生
醉梦人生 2021-01-19 23:18

  
  

        
4条回答
  •  独厮守ぢ
    2021-01-20 00:21

    After trying a lot of the options, they didn't work out. But however, this worked. In your Appstart folder add this code routes.IgnoreRoute("{resource}.axd/{*pathInfo}") in routeconfig.cs as shown below.

    public static void RegisterRoutes(RouteCollection routes) {
                routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
    }
    

提交回复
热议问题