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

Converting Existing Project to UI for Asp.Net MVC

3 Answers 476 Views
Installer and VS Extensions
This is a migrated thread and some comments may be shown as answers.
Matthew R.
Top achievements
Rank 1
Matthew R. asked on 20 Feb 2014, 05:59 PM
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.

3 Answers, 1 is accepted

Sort by
0
Vesko
Telerik team
answered on 24 Feb 2014, 09:32 AM
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.

Regards,
Vesko
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Carl
Top achievements
Rank 1
answered on 25 Mar 2014, 08:54 PM
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.
0
Vesko
Telerik team
answered on 27 Mar 2014, 10:06 AM
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.

Regards,
Vesko
Telerik
 

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.

 
Tags
Installer and VS Extensions
Asked by
Matthew R.
Top achievements
Rank 1
Answers by
Vesko
Telerik team
Carl
Top achievements
Rank 1
Share this question
or