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

Error after update to new version

3 Answers 158 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Karl
Top achievements
Rank 1
Karl asked on 06 Jul 2012, 09:57 AM
Hi,

I have just updated to the latest version (RadControls for WinForms, v.2012.2.608.40) and I am now getting on this line:


chartMarginsTitle1.Bottom = ((Telerik.Charting.Styles.Unit)(resources.GetObject("chartMarginsTitle1.Bottom")));

Warning 1 Object of type 'Telerik.Charting.Styles.Unit' cannot be converted to type 'Telerik.Charting.Styles.Unit'.

Could you tell me what must be changed)

Thank you

Karl



3 Answers, 1 is accepted

Sort by
0
Ivan Petrov
Telerik team
answered on 11 Jul 2012, 08:29 AM
Hi Karl,

Thank you for writing.

In Q2 2012 we have introduced a new charting mechanism which will replace the previous one. Currently, both are shipped with our suite and we will not remove/obsolete the old one until the new mechanism covers all features. 
The warning you get is because there are similar namespaces in the two chart assemblies. There are two things you can do to resolve this:
1. You can either use the full namespace of the class or use the include/using directive with the correct namespace. 
2. You can add only a reference to the assembly of the chart mechanism you are using and not include or remove the other one.

The assemblies are:
old mechanism - Telerik.WinControls.RadChart
new mechanism - Telerik.WinControls.ChartView

I hope this will be useful. Should you have further questions, I would be glad to help. 

Greetings,
Ivan Petrov
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
Karl
Top achievements
Rank 1
answered on 11 Jul 2012, 11:38 AM
Hi Ivan,

Thanks for answering. 

After playing around I noticed that the new changes to ChartView seem to be too big to handle for me right now.  So I reconstructed everything to how everything was working with RadChart, but I still get the error even when I exclude any references to ChartView in my entire Solution. Can you give me an example on how to change the code line, so that I can go on.

Thank you 

Karl
0
Ivan Petrov
Telerik team
answered on 16 Jul 2012, 05:02 AM
Hi Karl,

Thank you for writing back.

This warning may come if you are using different assembly references in your project(s). I would suggest you check all references and then clean your solution (right-click on solution in Solution Explorer and select Clean Solution) and build it again.

I hope this will stop the warning. Do not hesitate to write back with any further questions.
 
All the best,
Ivan Petrov
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
ChartView
Asked by
Karl
Top achievements
Rank 1
Answers by
Ivan Petrov
Telerik team
Karl
Top achievements
Rank 1
Share this question
or