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

Visual Studio is attempting to load class instances from a different assembly...

1 Answer 70 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Guillaume Crétot Richert
Top achievements
Rank 1
Guillaume Crétot Richert asked on 04 May 2009, 02:56 PM
Hi,

I recently updated Telerik to an internal build I needed to fix a RadGridView crash. The internal build I was given consisted of a .zip file with the .dll's. My initial guess was to first uninstall the current Telerik version, then simply copy the dll's in the PublicAssemblies folder of my VisualStudio installation path.

My problem is that when I open a designer, I get the following message

Visual Studio is attempting to load class isntances from a different assembly than the original used to create your components....

The paths shown in the error point to the ProjectAssemblies folder of my Local Settings path. It seems a temporary folder is created there and the .dll is copied there before opening the designer. I tried closing VS and deleting the temporary folders and their 'dll's, but as soon as I restart VS the folders are recreated, the dll's recopied, and the error occurs anew.

What am I doing wrong?

1 Answer, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 05 May 2009, 07:12 AM
Hello Guillaume Crétot Richert,

Please add our assemblies to the GAC and remove the old ones beforehand from there(e.g. uninstall the old version of Telerik Controls for WinForms from control panel). You need the assemblies in the GAC for design time.

Regards,
Nick
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Guillaume Crétot Richert
Top achievements
Rank 1
Answers by
Nick
Telerik team
Share this question
or