Bundle Of Kendo Ui Is Not Working In Iis
I am developing an application in ASP.NET MVC 4 using Kendo UI, and the entire application works perfectly by running Visual Studio 2012, but when publishing to the IIS bundle of K
Solution 1:
I managed to solve the problem by changing the virtual path "~/Content/kendo" to "~/Content/kendoui". In my project there is a physical path "~/Content/kendo" and the virtual path can not match the physical path.
Below is the corrected code:
bundles.Add(new StyleBundle("~/Content/kendoui").Include(
"~/Content/kendo/2013.1.514/kendo.common.min.css",
"~/Content/kendo/2013.1.514/kendo.blueopal.min.css",
"~/Content/kendo/2013.1.514/kendo.dataviz.min.css",
"~/Content/kendo/2013.1.514/kendo.dataviz.blueopal.min.css"));
I thank the attention G_P and Win.
Solution 2:
Found this documentation on the matter explains everything very well,
Hope this helps
Solution 3:
Change version number (2016.1.112) and try this:
BundleConfig.cs
bundles.Add(new StyleBundle("~/Content/kendo/2016.1.112/kendostyles").Include(
"~/Content/kendo/2016.1.112/kendo.common-bootstrap.min.css",
"~/Content/kendo/2016.1.112/kendo.mobile.all.min.css",
"~/Content/kendo/2016.1.112/kendo.dataviz.min.css",
"~/Content/kendo/2016.1.112/kendo.bootstrap.min.css",
"~/Content/kendo/2016.1.112/kendo.dataviz.bootstrap.min.css"));
BundleTable.EnableOptimizations = true;
_Layout.cshtml
@Styles.Render("~/Content/kendo/2016.1.112/kendostyles")
Post a Comment for "Bundle Of Kendo Ui Is Not Working In Iis"