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

kendo.all.min.js throws msie error when added to BundleConfig.cs, but kendo.web.min.js works (ASP.NET MVC4)

1 Answer 133 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
dwilkerson
Top achievements
Rank 1
dwilkerson asked on 10 May 2013, 03:43 PM

Anyone else have this happen?

Adding kendo.all.* in my BundleConfig.cs throws a javascript error every time (only for IE browser):

Microsoft JScript runtime error: Unable to get value of the property 'msie': object is null or undefined

I'm using IE9.  The debugger highlights this code inside the kendo.all.min.js file:

D=e.browser.msie&&8>parseFloat(e.browser.version)?function(e){return e.offsetTop}:function(t){return t.offsetTop-e(t).height()}

I'm using jQuery 1.9.1 and my bundleconfig class has the below code (I've put all css first, but the js files order is correct per Kendo documentation)

01.public class BundleConfig
02.{
03.    public static void RegisterBundles(BundleCollection bundles)
04.    {
05.        bundles.Add(new StyleBundle("~/Content/css").Include(
06.                    "~/Content/site.css"));
07. 
08.        bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
09.                    "~/Content/themes/base/jquery.ui.all.css"));
10. 
11.        // Kendo CSS bundle
12.        bundles.Add(new StyleBundle("~/Content/kendo").Include(
13.                    "~/Content/kendo.common.*",
14.                    "~/Content/kendo.default.*"));
15. 
16. 
17.        bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
18.                    "~/Scripts/jquery-{version}.js"));
19. 
20.        bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
21.                    "~/Scripts/jquery-ui-{version}.js"));
22. 
23.        bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
24.                    "~/Scripts/jquery.unobtrusive*",
25.                    "~/Scripts/jquery.validate*"));
26. 
27.        bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
28.                    "~/Scripts/modernizr-*"));
29. 
30.        // Kendo Script bundle
31.        bundles.Add(new ScriptBundle("~/bundles/kendo").Include(
32.                    "~/Scripts/kendo.all.*",
33.                    "~/Scripts/kendo.aspnetmvc.*"));
34. 
35.        // Clear all items from the ignore list to allow minified CSS and JavaScript files in debug mode
36.        bundles.IgnoreList.Clear();
37. 
38. 
39.        // Add back the default ignore list rules sans the ones which affect minified files and debug mode
40.        bundles.IgnoreList.Ignore("*.intellisense.js");
41.        bundles.IgnoreList.Ignore("*-vsdoc.js");
42.        bundles.IgnoreList.Ignore("*.debug.js", OptimizationMode.WhenEnabled);
43. 
44.    }
45.}

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 13 May 2013, 08:36 AM
Hi Diallo,

 
From the provided information it's not clear for us what is the exact reason for this behavior - could you please provide ranable project where the issue is reproduced? This would help us pinpoint the exact reason for this behavior.

Kind Regards,
Vladimir Iliev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
dwilkerson
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or