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

Chart runtime exceptions in your samples

3 Answers 154 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Robbe Morris
Top achievements
Rank 1
Robbe Morris asked on 09 May 2012, 11:49 PM

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)'

 

 

3 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 14 May 2012, 12:17 PM
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 >>

0
Robbe Morris
Top achievements
Rank 1
answered on 14 May 2012, 01:14 PM
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. 
0
Yavor
Telerik team
answered on 16 May 2012, 08:04 AM
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 >>

Tags
Chart
Asked by
Robbe Morris
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Robbe Morris
Top achievements
Rank 1
Share this question
or