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

3 posts, 1 answers
  1. Aleksey 311
    Aleksey 311 avatar
    4 posts
    Member since:
    Jul 2010

    Posted 12 Jul 2014 Link to this post

    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. Answer
    Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 14 Jul 2014 Link to this post

    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.

     
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Aleksey 311
    Aleksey 311 avatar
    4 posts
    Member since:
    Jul 2010

    Posted 14 Jul 2014 in reply to Atanas Korchev Link to this post

    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!
Back to Top