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

2 posts, 0 answers
  1. Guillaume Crétot Richert
    Guillaume Crétot Richert avatar
    33 posts
    Member since:
    Oct 2008

    Posted 04 May 2009 Link to this post


    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?
  2. Nick
    Nick avatar
    767 posts

    Posted 05 May 2009 Link to this post

    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.

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