Web Project With Split Personality

4 posts, 0 answers
  1. Marion
    Marion avatar
    22 posts
    Member since:
    Nov 2016

    Posted 06 Jun 2017 Link to this post

    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.

  2. Marion
    Marion avatar
    22 posts
    Member since:
    Nov 2016

    Posted 07 Jun 2017 Link to this post

    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

  3. Marion
    Marion avatar
    22 posts
    Member since:
    Nov 2016

    Posted 07 Jun 2017 Link to this post

    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.);
  4. Marion
    Marion avatar
    22 posts
    Member since:
    Nov 2016

    Posted 07 Jun 2017 Link to this post

    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)
        );
Back to Top