Chart runtime exceptions in your samples

4 posts, 0 answers
  1. Robbe Morris
    Robbe Morris avatar
    25 posts
    Member since:
    Apr 2004

    Posted 09 May 2012 Link to this post

    When you run your samples for the Chart control to look at the 3d pie chart, these errors are thrown.  Your code is a pretty simple bind to IEnumerable.  What should I do to avoid this when plugging your charts into my app?

     

    System.Windows.Data Error: 23 : Cannot convert '{DisconnectedItem}' from type 'NamedObject' to type 'System.Collections.IEnumerable' for 'en-US' culture with default conversions; consider using Converter property of Binding. NotSupportedException:'System.NotSupportedException: ReferenceConverter cannot convert from MS.Internal.NamedObject.

    at System.ComponentModel.TypeConverter.GetConvertFromException(Object value)

    at System.ComponentModel.TypeConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)

    at System.ComponentModel.ReferenceConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)

    at MS.Internal.Data.DefaultValueConverter.ConvertHelper(Object o, Type destinationType, DependencyObject targetElement, CultureInfo culture, Boolean isForward)'

    System.Windows.Data Error: 6 : 'ObjectSourceConverter' converter failed to convert value '{DisconnectedItem}' (type 'NamedObject'); fallback value will be used, if available. BindingExpression:Path=DataContext; DataItem='LabelLayer' (Name=''); target element is 'LabelLayer' (Name=''); target property is 'ItemsSource' (type 'IEnumerable') NotSupportedException:'System.NotSupportedException: ReferenceConverter cannot convert from MS.Internal.NamedObject.

    at MS.Internal.Data.DefaultValueConverter.ConvertHelper(Object o, Type destinationType, DependencyObject targetElement, CultureInfo culture, Boolean isForward)

    at MS.Internal.Data.ObjectSourceConverter.Convert(Object o, Type type, Object parameter, CultureInfo culture)

    at System.Windows.Data.BindingExpression.ConvertHelper(IValueConverter converter, Object value, Type targetType, Object parameter, CultureInfo culture)'

     

     

  2. Yavor
    Admin
    Yavor avatar
    401 posts

    Posted 14 May 2012 Link to this post

    Hi Robbe,

    Thank you for your exception detail!

    Unfortunately we might need some more information in order to better understand what's going on. Will it be possible for you to prepare a small sample application that reproduces this exception? 

    Regards,
    Yavor
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Robbe Morris
    Robbe Morris avatar
    25 posts
    Member since:
    Apr 2004

    Posted 14 May 2012 Link to this post

    Open "C:\Program Files (x86)\Telerik\RadControls for WPF Q1 2012\Demos\ExamplesCS_WPF.sln" in Visual Studio and run it.  Then, open up the chart samples and run the 3d pie chart. 
  5. Yavor
    Admin
    Yavor avatar
    401 posts

    Posted 16 May 2012 Link to this post

    Hi Robbe,

    We reproduced the output errors and I am happy to announce that our developers were able to track down and fix them. You can get the fix with the next LIB that will be available on Monday. Please update your binaries when it becomes available and let me know if it solves the problem.

    Kind regards,
    Yavor
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top