Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 1.66 KB

kb-common-xamlparseexception-dlls-mixup.md

File metadata and controls

42 lines (34 loc) · 1.66 KB
title description type page_title slug position tags ticketid res_type
Runtime Exception after adding a Telerik WPF control
XamlParseException with message "Could not load file or assembly or one of its dependencies" is thrown when the application is run.
troubleshooting
XamlParseException Appears at Run-Time
kb-common-xamlparseexception-dlls-mixup
0
xamlparseexception,versions,dlls,assemblies
1492107
kb

Environment

Product Version 2020.3 1020
Product UI for WPF

Description

XamlParseException with message "Could not load file or assembly or one of its dependencies" is thrown at runtime.

Solution

This issue usually occurs when the Telerik WPF dlls with different versions are referenced in the project. For example, some are 2020.3 1020 and others 2020.1 115.

Here are some situations in which this can happen:

  • Different versions referenced by mistake
  • References not properly auto resolved by Visual Studio if you have several Telerik versions installed on the machine.
  • Dragging a control from the Visual Studio toolbox to the UI. If the Telerik controls from the toolbox are using a different version than the one referenced in the project, when you drop a control the corresponding toolbox dll will get referenced in the project.

To resolve this, make sure that all Telerik dlls have the same version. To check this, use the Properties pane of the dll references in Visual Studio.

{{ site.framework_name }} Check Telerik Assemblies Version in Properties Pane