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

Kendo MVC Upgrade Problems

1 Answer 592 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 05 Jan 2018, 01:53 PM
I have performed a kendo upgrade on my MVC application and it has created problems that i need to resolve.

My upgrade was from version 2016.3.1118 to 2017.3.1026

Prior to upgrade wizard running i tried the compatibility checker but got an error saying it was incompatible with MVC projects, then it crashed my instance of VS2017.

So on reloading VS i just did the upgrade which took over an hour and the Upgrade Wizard Log indicated a success. The latest kendo files were installed and i changed my bundles.config to reference the new folders. I also checked my kendo reference was also now the latest version. The editor templates had also been updated. I also updated the reference to Telerik.UI.for.AspNet.Mvc5 version in packages.config.

Looking at a few previous posts on the forum i updated my bundles file to include an additional 2 files...

bundles.Add(new ScriptBundle("~/bundles/kendo").Include(
                "~/Scripts/kendo/2017.3.1026/kendo.web.min.js",
                "~/Scripts/kendo/2017.3.1026/kendo.aspnetmvc.min.js",
                "~/Scripts/kendo/2017.3.1026/cultures/kendo.culture.en-GB.min.js",
                "~/Scripts/kendo/2017.3.1026/kendo.all.min.js",
                "~/Scripts/kendo/2017.3.1026//jszip.min.js"
                ));


On running my application post upgrade i am not getting any data to display nor am i getting many of the links to work. There are also some CSS issues but these are not a priority till i get the functionality working again.

What steps should i take to try and determine what is wrong? It would seem that my jquery/ typescript files are not running or something is conflicting with them? I do see the main ones loading in the Network tab of Developer Tools, and in the Console tab i see a number of errors that do not appear in the original application. (image attached)

Any help with this would be much appreciated...

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 09 Jan 2018, 08:49 AM
Hello Mark,

The successful upgrade of a Telerik UI for ASP.NET MVC version depends on two major steps:


I have inspected the provided bundle snippet and noticed that kendo.web.min.js is include and actually this is not needed. Please try to modify the bundle as follows:
bundles.Add(new ScriptBundle("~/bundles/kendo").Include(
  "~/Scripts/kendo/2017.3.1026//jszip.min.js",
  "~/Scripts/kendo/2017.3.1026/kendo.all.min.js",
  "~/Scripts/kendo/2017.3.1026/kendo.aspnetmvc.min.js",
  "~/Scripts/kendo/2017.3.1026/cultures/kendo.culture.en-GB.min.js"                       
));

Also, please make sure that the Kendo bundle is referenced after jQuery and that the references are placed in the <head> element in the Layout file:
<head>
  ...
  @Scripts.Render("~/bundles/jquery")
  @Scripts.Render("~/bundles/kendo")
</head>

Please try the above and let me know if this works.

I am looking forward to hearing from you.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
General Discussions
Asked by
Mark
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or