Converting Existing Project to UI for Asp.Net MVC

4 posts, 0 answers
  1. Matthew
    Matthew avatar
    5 posts
    Member since:
    Aug 2012

    Posted 20 Feb 2014 Link to this post

    I'm having a problem using the wizard to convert an existing project to a Telerik UI for Asp.Net MVC project. It will go through the conversion just fine and add all of the necessary resources, however after converting then I'm no longer able to use scaffolding to create new controllers based on defined data models. I get the error stating:

    There was an error running the selected code generator: 'There was an error getting type 'ProjectName.Models.ModelName'. Try rebuilding the project.'

    I've tried creating new models and then generating a new controller as well as creating a new controller based on previously defined models and get the same error in both instances. Simply rebuilding the project doesn't work. I even tried creating a new project, copying over my resources and converting it through the wizard again and get the same results. The target framework is 4.5.
  2. Vesko
    Vesko avatar
    97 posts

    Posted 24 Feb 2014 Link to this post

    Hello Matthew,

    We are sorry for the inconvenience.

    Could you please send us more details that will help us reproduce the problem? An example project and/or a screencast are the most appropriate.

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Carl
    Carl avatar
    195 posts
    Member since:
    Oct 2012

    Posted 25 Mar 2014 in reply to Vesko Link to this post

    There are other problems as well with that utility.  The wizard takes a C# Razor project and then when it adds a missing C# Razor layout file, the wizard refers to it as a master page and even inserts VB code into the C# Razor layout file.  For example:

    @Html.ActionLink("Application name", "Index", "Home", Nothing, New With {.class = "navbar-brand"})

    where you will note that keywords "Nothing" and "New With" are Visual Basic and not C#.  So this wizard utility definitely has bugs in it as far as I'm concerned.  It needs to untangle the difference between Visual Basic projects and C# projects.
  5. Vesko
    Vesko avatar
    97 posts

    Posted 27 Mar 2014 Link to this post

    Hi Carl,

    Thank you for reporting this issue. We will provide a fix as soon as possible.

    I've just updated you points. Thank you for helping us improve our products once again.


    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

Back to Top
UI for ASP.NET MVC is VS 2017 Ready