Bundled css link gets a 404 error

前端 未结 6 1027
不知归路
不知归路 2020-12-09 16:24

I am trying to get bundling to work in ASP.NET MVC 4. I am getting a 404 error from the link generated for the bundled CSS. I have done the following:

  1. Ins

6条回答
  •  一个人的身影
    2020-12-09 17:10

    All my bundles names starting with "~/bundles/..." were not found in my WebAPI. Adding the line to my RouteConfig.cs class

        routeCollection.Ignore("bundles/{*catch}");
    

    fixed my issue.

提交回复
热议问题