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

3 posts, 0 answers
  1. Yaroslav
    Yaroslav avatar
    98 posts
    Member since:
    Jan 2016

    Posted 21 Jul Link to this post

    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. Martin
    Martin avatar
    1048 posts

    Posted 22 Jul Link to this post

    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.

    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft banner
  4. Yaroslav
    Yaroslav avatar
    98 posts
    Member since:
    Jan 2016

    Posted 25 Jul in reply to Martin Link to this post

    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.
Back to Top