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

Broken Razor syntax for Kendo WidgetFactory after update to ASP.NET MVC 5.2.0

2 Answers 56 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aleksey 311
Top achievements
Rank 1
Aleksey 311 asked on 12 Jul 2014, 01:47 PM
After update to latest release of ASP.NET MVC stack:

  <package id="Microsoft.AspNet.Mvc" version="5.2.0" targetFramework="net45" />
  <package id="Microsoft.AspNet.Razor" version="3.2.0" targetFramework="net45" />
  <package id="Microsoft.AspNet.WebPages" version="3.2.0" targetFramework="net45" />

WidgetFactory for HtmlHelper<T> Kendo() is broken (latest release of Kendo UI ASP.NET MVC)

Visual Studio 2013 (update 2) shows message: "Cannot convert instance argument type 'System.Web.Mvc.HtmlHelper<dynamic>' to 'System.Web.Mvc.HtmlHelper'"

For strong typed view message looks like: "Cannot convert instance argument type 'System.Web.Mvc.HtmlHelper<MyCustomType>' to 'System.Web.Mvc.HtmlHelper'"

All works. But Visual Studio displays an errors and does not work intellisens :(
How to fix it?


2 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 14 Jul 2014, 02:05 PM
Hi,

We couldn't reproduce this problem in the attached sample project. After upgrading to MVC 5.2 Visual Studio intellisense continued to work as expected (screenshot attached).

Does the attached project work for you?

Regards,
Atanas Korchev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Aleksey 311
Top achievements
Rank 1
answered on 14 Jul 2014, 03:34 PM
I have studied your project and found the difference in the following lines of web.config:

    <compilation debug="true" targetFramework="4.5.1" />
    <httpRuntime targetFramework="4.5.1" />

In my project was 4.5

I correct and everything worked fine. Thank very much for your help!
Tags
General Discussions
Asked by
Aleksey 311
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Aleksey 311
Top achievements
Rank 1
Share this question
or