This is a migrated thread and some comments may be shown as answers.

Web Project With Split Personality

3 Answers 54 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Marion
Top achievements
Rank 1
Marion asked on 06 Jun 2017, 02:18 PM

We have a project that is half ASP using RAD, and the other half is ASP MVC. On our local development boxes that project compiles and works fine, but when we publish it to production the icons do not appear. Initially, it was a CSS problem that wasn't skinning any of the MVC portion of the web site but we tweaked the path and now the Kendo controls are rendering fine, with the exception of the icons. I know that the icons reside in the sprite.png file, and I think I need to move a copy of the ~/Contents/kendo folder to another path so that the MVC portion of the project can find the icons, but so far I can figure out where to put it.

Any suggestions?

Attached is a screenshot of the folder structure of the project. The MVC portion of the project is in Areas/MvcArea.

3 Answers, 1 is accepted

Sort by
0
Marion
Top achievements
Rank 1
answered on 07 Jun 2017, 03:25 PM

This is what I have been able to figure out so far.

The app is looking for resources like kendoui.ttf at

~/finance/budget/Content/images/kendoui.ttf?v=1.1

but it is actually at

~/finance/budget/Content/kendo/images/kendoui.tff

This icons are in a bundle that is defined at

~/finance/budget/Content/kendo-css

the sprite.png actually resides at

~/finance/budget/Content/kendo/Default/sprite.png

0
Marion
Top achievements
Rank 1
answered on 07 Jun 2017, 03:29 PM

The kendo-css bundle looks like this:

1.bundles.Add(new StyleBundle("~/Content/kendo-css")
2. .Include("~/Content/kendo/kendo.mobile.all.min.css")
3. .Include("~/Content/kendo/kendo.dataviz.min.css")
4. .Include("~/Content/kendo/kendo.default.min.css")
5. .Include("~/Content/kendo/kendo.dataviz.default.min.css")
6. .Include("~/Content/kendo/kendo.common.min.css")
7.);
0
Marion
Top achievements
Rank 1
answered on 07 Jun 2017, 07:24 PM

Here is what I did to fix my problem.

bundles.Add(new StyleBundle("~/Content/kendo-css")
    .Include("~/Content/kendo/kendo.mobile.all.min.css")
    .Include("~/Content/kendo/kendo.dataviz.min.css")
    .Include("~/Content/kendo/kendo.default.min.css")
    .Include("~/Content/kendo/kendo.dataviz.default.min.css")
    //.Include("~/Content/kendo/kendo.common.min.css")
    .IncludeDirectory("~/Content/kendo/", "kendo.default*", true)
    .IncludeDirectory("~/Content/kendo/Default/", "*.png", true)
    .IncludeDirectory("~/Content/kendo/Default/", "*.gif", true)
    .IncludeDirectory("~/Content/kendo/Default/", "*.jpg", true)
    );
Tags
General Discussions
Asked by
Marion
Top achievements
Rank 1
Answers by
Marion
Top achievements
Rank 1
Share this question
or