Utilizzando VS'12, Asp.net - C# - InternetApplication Template, KendoUI, EF Codice PrimaMVC bundeling: Err 403
Questa è la mia MVC BundleConfig.cs
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/Scripts/jquery-{version}.js"));
bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css"));
// The Kendo CSS bundle
bundles.Add(new StyleBundle("~/Content/kendo").Include(
"~/Content/kendo/kendo.common.*",
"~/Content/kendo/kendo.default.*"));
// The Kendo JavaScript bundle// or kendo.all.min.js if you want to use Kendo UI Web and Kendo UI DataViz
bundles.Add(new ScriptBundle("~/bundles/kendo").Include(
"~/Scripts/kendo/kendo.web.min.js",
"~/Scripts/kendo/kendo.aspnetmvc.min.js"));
Inoltre è dovrebbe sapere che sto eseguendo queste 2 righe alla fine di BundleConfig.cs
bundles.IgnoreList.Clear();
bundles.DirectoryFilter.Clear();
Mi sono trovato 403 Accesso negato, Errori file proibiti quando provo ad ospitare il progetto.
Ho provato a utilizzare This Awesome Post come riferimento, dove ho apportato alcune modifiche, ma gli errori si verificano ancora.
Mi piacerebbe pensarlo a causa dei file .min con cui è arrivato KendoUI, ma non posso esserne certo.
Per il vostro riferimento questo è il mio _Layout.cshtml
e come chiamo gli script.
@Scripts.Render("~/bundles/jquery")
@Styles.Render("~/Content/css")
@Styles.Render("~/Content/kendo")
@Scripts.Render("~/bundles/kendo")
Freaking awesome, entrambi in/Content stava causando problemi credo ?? - grazie anche per la tua risposta veloce! –
Per chi è interessato: l'uso di '~/Content' per' StyleBundle' non funziona, perché è già una cartella esistente. –