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

'RadCodeBlock1', but its type (Telerik.Web.UI.RadCodeBlock) is not compatible with the type of control (Telerik.Web.UI.RadCodeBlock).

1 Answer 261 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 10 Jan 2017, 07:53 PM

Recent upgrade to Telerik.Web.UI runtime version v4.0.30319 started throwing error  "The base class includes the field 'RadCodeBlock1', but its type (Telerik.Web.UI.RadCodeBlock) is not compatible with the type of control (Telerik.Web.UI.RadCodeBlock)."

We also tried the Toolbox to verify the RadCodeblock and it exist. Are there any changes required to execute this during runtime?

 

 

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 13 Jan 2017, 02:51 PM
Hello Steve,

The error you are seeing is usually observed when the assembly for the controls is targeting a different .NET version than the project.

You can check what version is targeting the Telerik.Web.UI.dll file by checking the version for it. If for example the version is 2016.3.1027.45 the assembly is targeting .NET 4.5 and above. The last two digits in the version indicate the .NET version. You can see more details on checking the version of the dll in the article below.



Regards,
Viktor Tachev
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Ajax
Asked by
Steve
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or