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>