MVC bundeling : Err 403

前端 未结 2 621
傲寒
傲寒 2021-01-07 22:07

Using VS\'12, Asp.net - C# - InternetApplication Template, KendoUI, EF Code First

This is my MVC BundleConfig.cs



        
2条回答
  •  感情败类
    2021-01-07 23:11

    Try changing

    bundles.Add(new StyleBundle("~/Content/kendo").Include(
                "~/Content/kendo/kendo.common.*",
                "~/Content/kendo/kendo.default.*"));
    

    to

    bundles.Add(new StyleBundle("~/bundles/css/kendo").Include(
                "~/Content/kendo/kendo.common.*.css",
                "~/Content/kendo/kendo.default.*.css"));
    

    and then

    @Styles.Render("~/Content/kendo")
    

    to

    @Styles.Render("~/bundles/css/kendo")
    

提交回复
热议问题