I have been doing code optimization for an ASP MVC 5 application that uses the Telerik Kendo controls. Some of the search results may return 7000 records in this project. After I had replaced the serializer, it took 30% less time to load the search results page.
- In the Application_Start event in the Global.asax file, register the new serializer
After upgrading one of my client’s applications from ASP MVC 4 to ASP MVC 5, We had designers errors related to Html Helpers and ViewBag in cshtml pages.
To fix those issues make sure you do the following:
Install Asp.NET Web Helpers Library from Nuget
Open the Web.config of the project and update the bindings if they haven’t been updated when installing the Nuget packages for example
<assemblyIdentity name=”System.Web.Mvc” publicKeyToken=”31bf3856ad364e35″ />
<bindingRedirect oldVersion=”0.0.0.0-188.8.131.52″ newVersion=”184.108.40.206” />
Find “webpages:Version” in the appsettings and update it to version 220.127.116.11. My web.config had
<add key=”webpages:Version” value=”18.104.22.168″ />
and I updated it to
<add key=”webpages:Version” value=”22.214.171.124″ />
Restart Visual Studio and rebuild. You may have to delete the bin folder for your project