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

Conflict between different versions of the same dependent assembly

1 Answer 542 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jill-Connie Lorentsen
Top achievements
Rank 1
Jill-Connie Lorentsen asked on 04 Apr 2011, 12:29 PM
After upgrading to Q1 2011 I get a warning saying: Found conflicts between different versions of the same dependent assembly.

Doubleclicking brings out this message:  One or more dependent assemblies have version conflicts. Do you want to fix these conflicts by adding binding redirect records in the app.config file?

Anwering "yes" adds these records in the file:


<dependentAssembly>

<assemblyIdentity name="TelerikCommon" publicKeyToken="5BB2A467CBEC794E" culture="neutral"/>

<bindingRedirect oldVersion="0.0.0.0-2011.1.11.315" newVersion="2011.1.11.315"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Telerik.WinControls" publicKeyToken="5BB2A467CBEC794E" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-2011.1.11.315" newVersion="2011.1.11.315"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Telerik.WinControls.UI" publicKeyToken="5BB2A467CBEC794E" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-2011.1.11.315" newVersion="2011.1.11.315"/>
</dependentAssembly>

When attemting to run I get the following error:

Could not load type Telerik.WinControls.Primitives.RectanglePrimitive from assembly Telerik.WinControls, Version=2011.1.11.315, Culture=neutral, PublicKeyToken=5bb2a467cbec794e

Then I get "No source available, no symbols are loaded for any call stack fram, the source code can not be shown". Frustrating...

I have tried removing and adding all the references to Telerik dll's, but I still get the error. Any help is appreciated!

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 04 Apr 2011, 01:35 PM
Hi Jill-Connie Lorentsen,

Thank you for contacting us.

It will be best if you uninstall all RadControls for WinForms versions from your machine and make sure that your GAC does not contain Telerik.WinForms assemblies as well. After this is done, please download the installer from Your Account and install RadControls for WinForms anew. Then, open your solution, add the correct references and remove the serialized xml code concerning the assemblies. Finally, close the Visual Studio instance that has your project opened and reopen it. These steps should allow you to update to the latest version successfully.

All the best,
Nikolay
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Jill-Connie Lorentsen
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or