Exception in kendo.all.min.js

2 posts, 0 answers
  1. Robert
    Robert avatar
    23 posts
    Member since:
    Jun 2012

    Posted 12 Mar 2013 Link to this post

    Hi here,

    I'm building a web application with ASP.NET MVC4 and everything runs quite well so far. No I wanted to integrate Kendo UI to my _Layout.cshtml file in order to use some widgets. So I followed these steps (here) to include the neccessary scripts and styles, but when I run the project, it throws a JavaScript exception:

    Unbehandelte Ausnahme in Zeile 17, Spalte 14133 in http://localhost:54430/Scripts/KendoUI/js/kendo.all.min.js
    0x800a138f - Laufzeitfehler in JavaScript: Die Eigenschaft "msie" eines undefinierten oder Nullverweises kann nicht abgerufen werden.

    When I comment out the reference to kendo.all.min.js everything works flawlessly. What can I do? I'm having a hard time telling my Boss that it actually was a good idea to spend more than thousand bucks on a bunch of tools that do not work. Please help me wih that!

    Regards,
    Rob

    Here's my code:

    (PS: I also tried adding a reference to kendo.aspnetmvc.min.js (one time before Kendo.all.min.js, another time behind it), but it didn't help.)

    <!DOCTYPE html>
    <html lang="de">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width" />
     
        <title>@ViewBag.Title - © 2012 PINTSCH ABEN B.V.</title>
     
        <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
     
        @Styles.Render("~/Content/css")
        @Styles.Render("~/Content/themes/base/css")
        <link href="/Scripts/KendoUI/styles/kendo.common.min.css" type="text/css" rel="stylesheet" />
        <link href="/Scripts/KendoUI/styles/kendo.default.min.css" type="text/css" rel="stylesheet" />
        @Scripts.Render("~/bundles/jquery")
        @Scripts.Render("~/bundles/modernizr")
    </head>
    <body>
        <header>
            <div class="content-wrapper">
                <div class="float-left">
                    <section id="logins">
                        @Html.Partial("_LoginPartial")
                    </section>
                    <nav>
                        <ul id="menu">
                            <li>@Html.ActionLink("Startseite", "Index", "Home")</li>
                            <li>@Html.ActionLink("Info", "About", "Home")</li>
                            <li>@Html.ActionLink("Kontakt", "Contact", "Home")</li>
                        </ul>
                    </nav>
                </div>
     
                <div class="float-right">
                    <img src="~/Images/logo.jpg" />
                    @*<p class="site-title">@Html.ActionLink("Ihr Logo hier einfügen", "Index", "Home")</p>*@
                </div>
     
            </div>
        </header>
        <div id="body">
     
            @RenderSection("featured", required: false)
            <section class="content-wrapper main-content clear-fix">
                @RenderBody()
            </section>
        </div>
        <footer>
            <div class="content-wrapper">
                <div class="float-left">
                    <p>© @DateTime.Now.Year - PINTSCH ABEN WH-SYSTEMS</p>
                </div>
            </div>
        </footer>
        <script src="~/Scripts/KendoUI/js/kendo.all.min.js"></script>
        @RenderSection("scripts", required: false)
    </body>
    </html>
  2. Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 13 Mar 2013 Link to this post

    Hello Rob,

    Kendo UI requires a compatible version of jQuery registered on the page.

    Regards,
    Dimo
    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
Back to Top