Error after update to new version

4 posts, 0 answers
  1. Karl Golling
    Karl Golling avatar
    226 posts
    Member since:
    Jun 2005

    Posted 06 Jul 2012 Link to this post

    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



  2. Ivan Petrov
    Admin
    Ivan Petrov avatar
    701 posts

    Posted 11 Jul 2012 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Karl Golling
    Karl Golling avatar
    226 posts
    Member since:
    Jun 2005

    Posted 11 Jul 2012 Link to this post

    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
  5. Ivan Petrov
    Admin
    Ivan Petrov avatar
    701 posts

    Posted 16 Jul 2012 Link to this post

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