Hi,
I'm using Silverlight 4, with the latest Silverlight Telerik library.
When I try to add RadCharts to a UserControl in Visual Studio I get the following error:
[Line: 0 Position: 0]
"Method not found: 'System.Delegate System.Reflection.MethodInfo.CreateDelegate(System.Type, System.Object)'."
I can successfully add them in Blend.
If I add one in Blend, and then view the UserControl in Visual Studio everything is fine. But if I add more than one to the UserControl and try to view it in Visual Studio I get the this error when I open the xaml file:
MissingMethodException was thrown on "RadChart": [Line: 0 Position: 0]Method not found: 'System.Delegate System.Reflection.MethodInfo.CreateDelegate(System.Type, System.Object)'. at System.Dynamic.Utils.TypeExtensions.CreateDelegate(MethodInfo methodInfo, Type delegateType, Object target) at System.Linq.Expressions.Compiler.LambdaCompiler.CreateDelegate() at System.Linq.Expressions.Compiler.LambdaCompiler.Compile(LambdaExpression lambda, DebugInfoGenerator debugInfoGenerator) at Telerik.Windows.Controls.Charting.DataBindingHelper.CreateExpressionGetter(Type itemType, String propertyName) in c:\Builds\135\WPF_Scrum\Release_SL\Sources\Development\Controls\Charting\Chart\Data\DataBindingHelper.cs:line 716 at Telerik.Windows.Controls.Charting.DataBindingHelper.RecreateExpressionGetters(IEnumerable`1 descriptors) in c:\Builds\135\WPF_Scrum\Release_SL\Sources\Development\Controls\Charting\Chart\Data\DataBindingHelper.cs:line 645 at Telerik.Windows.Controls.Charting.DataBindingHelper.GenerateDataSeries(Object originalData, SeriesMappingCollection seriesMappings, ISeriesDefinition defaultSeriesDefinition, ChartFilterDescriptorCollection globalFilterDescriptors, ChartSortDescriptorCollection globalSortDescriptors, SamplingSettings samplingSettings, ZoomScrollSettings zoomScrollSettings, AxisRangeState axisXRangeState) in c:\Builds\135\WPF_Scrum\Release_SL\Sources\Development\Controls\Charting\Chart\Data\DataBindingHelper.cs:line 64 at Telerik.Windows.Controls.RadChart.GenerateDataSeries(Object originalData, SeriesMappingCollection seriesMappings, ChartArea chartArea) in c:\Builds\135\WPF_Scrum\Release_SL\Sources\Development\Controls\Charting\Chart\RadChart.cs:line 1335 at Telerik.Windows.Controls.RadChart.GenerateDataSeries(Object originalData) in c:\Builds\135\WPF_Scrum\Release_SL\Sources\Development\Controls\Charting\Chart\RadChart.cs:line 1305 at Telerik.Windows.Controls.RadChart.Rebind(Object originalData) in c:\Builds\135\WPF_Scrum\Release_SL\Sources\Development\Controls\Charting\Chart\RadChart.cs:line 918 at Telerik.Windows.Controls.RadChart.ItemsSourcePropertyChanged(DependencyObject target, DependencyPropertyChangedEventArgs args) in c:\Builds\135\WPF_Scrum\Release_SL\Sources\Development\Controls\Charting\Chart\RadChart.cs:line 1030 at Telerik.Windows.PropertyMetadata.PropertyChangeHook.OnPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) in c:\Builds\135\WPF_Scrum\Release_SL\Sources\Development\Core\Controls\Common\System.Windows\PropertyMetadata.cs:line 262 at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue) at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation) at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isBindingInStyleSetter) at Telerik.Windows.Controls.RadChart.set_ItemsSource(Object value) in c:\Builds\135\WPF_Scrum\Release_SL\Sources\Development\Controls\Charting\Chart\RadChart.cs:line 499 at Telerik.Windows.Controls.RadChart.InitializeDesignTimeData() in c:\Builds\135\WPF_Scrum\Release_SL\Sources\Development\Controls\Charting\Chart\RadChart.cs:line 1409 at Telerik.Windows.Controls.RadChart.OnApplyTemplate() in c:\Builds\135\WPF_Scrum\Release_SL\Sources\Development\Controls\Charting\Chart\RadChart.cs:line 807 at System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)
Am I doing something wrong? I don't remember this happening before.