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

"Could not load file or assembly 'telerik.windows.controls.chart" error when navigating to view where RadChartView is.

2 Answers 432 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Dmitry
Top achievements
Rank 1
Dmitry asked on 21 Jul 2016, 01:42 PM

I write C# WPF MVVM Prism 6 modular application. One of the modules has a view (Prism UserControl) with RadChartView. In this module I add references to the following assemblies: Telerik.Windows.Controls (ver. 2016.2.613.45), Telerik.Windows.Controls.Chart (ver. 2016.2.613.45), Telerik.Windows.Data (ver. 2016.2.613.45). (Just recently I upgrade Telerik binaries to the new version.) Then I add RadChartView into a view (Prism UserControl) that is in this module. But when I navigate to this view (where RadChartView is) then System.Windows.Markup.XamlParseException exception in PresentationFramework.dll has place. The error text is: Could not load file or assembly 'telerik.windows.controls.chart'. Why this error has place?

2 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 22 Jul 2016, 08:14 AM
Hello Yaroslav,

Without your setup I cannot be sure what is causing the issue, but I can suggest you to check the following:
  • Double check if the target framework of the project matches the .NET version of the Telerik dlls (.NET4 or .NET45)
  • Double check if all Telerik referenced assemblies has the same version. See this in the Properties tab of the assembly in Visual Studio.
  • Double check if the Telerik assemblies are for WPF. If for some reason you have the Silverlight version installed and they are referenced in the project such error could occur.
  • If you have a folder with the dlls included in the Visual Studio project, the project will get them from there regardless the directory from where you want to reference them. If you have such folder you can double check if all Telerik dlls are referenced from the correct location and if they are of the same version.
  • If you are using the implicit styles theming mechanism you can double check if the theme resources are properly merged.

I hope this helps.

Regards,
Martin
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Dmitry
Top achievements
Rank 1
answered on 25 Jul 2016, 11:01 AM
After I deleted <telerik:RadCartesianChart>....</telerik:RadCartesianChart> XAML markup in the view and have draged telerik:RadCartesianChart from Controls Panel to the view then the problem is resolved. Such a case with telerik:RadCartesianChart, I note in the second time.
Tags
ChartView
Asked by
Dmitry
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Dmitry
Top achievements
Rank 1
Share this question
or