ASP.Net MVC4 - KendoUI CSS files rendered with empty content.

4 posts, 0 answers
  1. Jignesh
    Jignesh avatar
    4 posts
    Member since:
    Nov 2012

    Posted 06 Dec 2012 Link to this post

    Project Type: ASP.Net MVC4

    In _Layouts folder:
    @Styles.Render("~/Content/kendo")

    In Bundles config:
     bundles.Add(new StyleBundle("~/Content/kendo").Include(
                            "~/Content/kendo/2012.3.1114/kendo.common.min.css",
                            "~/Content/kendo/2012.3.1114/kendo.default.min.css"));

    It is working, when in web.config <compilation debug="true" targetFramework="4.0"/>

    But rendered as blank file on browser when <compilation debug="false" targetFramework="4.0"/>


  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 06 Dec 2012 Link to this post

    Hello,

     The steps required to use Kendo UI assets via ASP.NET bundles are described in our documentation.

    Regards,
    Atanas Korchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Jignesh
    Jignesh avatar
    4 posts
    Member since:
    Nov 2012

    Posted 06 Dec 2012 Link to this post

    As stated, its working fine in debug mode, but not working in Release mode.

    In release mode css content rendered file is totally blank.

    Please see the IE 9 >> Developer tools scree-shot.

    The problem is only with 
    <compilation debug="false" targetFramework="4.0"/>
  5. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 06 Dec 2012 Link to this post

    Hi,

     The instructions from the documentation work both in release and debug mode. I don't think your current configuration would work for any JS file. The problem is not related to Kendo UI.

    Regards,
    Atanas Korchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top
UI for ASP.NET MVC is VS 2017 Ready