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

XamlParseException Could not load file or assembly 'Telerik.Windows.Controls.Data

1 Answer 274 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Gooi
Top achievements
Rank 1
Gooi asked on 05 Mar 2021, 02:31 AM

Hi, I've below xaml code for the RadLegend. The path data is causing the runtime error as could not find the assembly file. Could you please advise?

 

<telerik:RadLegend x:Name="legends" Items="{Binding LegendItems, ElementName=lineChart}"
                                       FontFamily="Segoe UI"
                                       Margin="2 52 30 20">
                            <telerik:RadLegend.ItemTemplate>
                                <DataTemplate>
                                    <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
                                        <CheckBox IsChecked="{Binding Presenter.DataContext.IsVisible, Mode=TwoWay}"></CheckBox> <!--Command="{Binding DataContext.UpdateSeriesVisibilityCommand, RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}}"-->
                                        <Path Fill="{Binding MarkerFill}" Width="15" Height="15">
                                            <Path.Data>
                                                <Binding Path="ActualMarkerGeometry" RelativeSource="{RelativeSource AncestorType=telerik:LegendItemControl}"></Binding>
                                            </Path.Data>
                                        </Path>
                                        <TextBlock Text="{Binding Title}" />
                                    </StackPanel>
                            </DataTemplate>
                        </telerik:RadLegend.ItemTemplate>
                        </telerik:RadLegend>

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 09 Mar 2021, 12:50 PM

Hi Gooi,

Thank you for the provided images and code snippet.

Based on them, I tried to replicate the same exception at my end, however, the project is built and run successfully on my machine. I've attached the project to my reply for your reference.

One possible cause for this issue that comes to mind is if the references to the Telerik dlls point to assemblies of different versions. You can double-check whether this is the case and ensuring the location of all binaries is identical and possibly also specify a HintPath for each reference. You can replace the references automatically by using the ReferencesResolverExtension, for example.

Please let me know if this resolves your issue.

Regards,
Dilyan Traykov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Chart
Asked by
Gooi
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or