Issues building Winforms app with Telerik.WinControls.Themes.Crystal library

1 Answer 174 Views
General Discussions Themes and Visual Style Builder
Zubin
Top achievements
Rank 1
Zubin asked on 07 Feb 2023, 06:50 PM

Hi:

I have a Winforms application that I recently update the Telerik controls to 2023.1.117.40.

I am now unable to build as I am getting the following error:

'Could not load file or assembly 'Telerik.WinControls.Themes.Crystal, Version=2023.1.117.40, Culture=neutral, PublicKeyToken=bf4391287131aaeb' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)'

Am I missing a required Telerik library in my references?

Here are the libraries I am currently referencing:

 

Zubin
Top achievements
Rank 1
commented on 07 Feb 2023, 07:12 PM

We are using Visual Studio 2019 and .Net 4.5.

 

I did run DependencyWalker against the Themes.Crystal library, and it did not turn up anything that we are mssing.

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 09 Feb 2023, 05:53 AM

Hello, Zubin,

According to the provided information, it wouldn't be easy to determine what causes the undesired behavior you are facing.

I would like to ask you to check the references to all Telerik controls in your project and make sure that they are the same version considering the suffix as well (.20 or .40) since it is usually the most common reason for such a behavior after upgrading. Better yet, you can remove all references and add them anew by using the DLLs from your fresh installation: https://docs.telerik.com/devtools/winforms/installation-and-upgrades/updating-assemblies-in-a-project
Delete the license.licx file. After that, you should rebuild your project, close Visual Studio and open it again to make sure that no references are kept in the memory by Visual Studio. Ensure that no old versions are available in GAC: https://docs.telerik.com/devtools/winforms/knowledge-base/examine-the-gac
Off topic, the following KB article demonstrates the different approaches that you may follow when upgrading the Telerik UI for WinForms suite:
https://docs.telerik.com/devtools/winforms/knowledge-base/how-to-upgrade-a-project

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
General Discussions Themes and Visual Style Builder
Asked by
Zubin
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or