Assembly Confusion in Telerik Winforms

6 posts, 0 answers
  1. Yosief
    Yosief avatar
    26 posts
    Member since:
    Mar 2008

    Posted 28 Apr 2010 Link to this post

    Hi All

    I have a problem where Visual Studio is trying to use a telerik assembly (which it calls a Component Assembly) that resides in different folder from the one mentioned in the referenced assemblies list(Designer Assembly). It displays 3 error messages one after the other.

    1. Here is the full text of the error in the first message box:
    ===========================================
    Visual Studio Error Detected


    Visual Studio is attempting to load class instances from a different assembly than the original used to create your components. This will result in failure to load your designed component. More information that will help you to correct the problem.

    Component Assembly:

    C:\Documents and Settings\Yosief.Kesete\Local Settings\Application Data\Microsoft\VisualStudio\9.0\ProjectAssemblies\aoxm94wn01\Telerik.WinControls.GridView.dll

    Designer Assembly:

    C:\Program Files\Telerik\RadControls for WinForms Q1 2010\bin\Telerik.WinControls.UI.Design.dll

    Please close Visual Studio, remove the errant assembly and try loading your designer again.

    Ensure that you do not attempt to save any designer that opens with errors, as this can result in loss of work. Note that you may receive this message multiple times, once for each component instance in your designer.

    ===========================================




    2. And this is what gets displayed in the second message box:
    ===========================================

    Error


    An exception occurred while trying to update the data smart tasks, they will be disabled.

     

    Property accessor 'DataSource' on object 'Telerik.WinControls.UI.Design.RadGridViewDesigner' threw the following exception:'[A]Telerik.WinControls.UI.RadGridView cannot be cast to [B]Telerik.WinControls.UI.RadGridView. Type A originates from 'Telerik.WinControls.GridView, Version=2010.1.10.308, Culture=neutral, PublicKeyToken=5bb2a467cbec794e' in the context 'LoadNeither' at location 'C:\Documents and Settings\Yosief.Kesete\Local Settings\Application Data\Microsoft\VisualStudio\9.0\ProjectAssemblies\aoxm94wn01\Telerik.WinControls.GridView.dll'. Type B originates from 'Telerik.WinControls.GridView, Version=2010.1.10.308, Culture=neutral, PublicKeyToken=5bb2a467cbec794e' in the context 'LoadFrom' at location 'C:\Program Files\Telerik\RadControls for WinForms Q1 2010\bin\Telerik.WinControls.GridView.dll'.'

    ===========================================



    3. The following gets displayed in the last message box:
    ===========================================

    Microsoft Visual Studio

    The control Telerik.WinControls.UI.RadGridView has thrown an unhandled exception in the designer and has been disabled.

     

    Exception:

    Object reference not set to an instance of an object.

     

    Stack trace:

    ===========================================



    Any idea why that happening? Please help ASAP as I have spent 15 hours trying to figure why.

    Thank you in advance
    Yosief Kesete


  2. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 29 Apr 2010 Link to this post

    Hi Yosief,

    Thank you for the question.

    Make sure that you have followed all the steps given in this article. Please pay attention to the last part of the article (the manual update) as well. This should help you to overcome the described issue.

    Best wishes,
    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Steve
    Steve avatar
    4 posts
    Member since:
    Sep 2011

    Posted 13 Dec 2011 Link to this post

    The link you provided is now not working, I am having a similar issue but it has to do with my upgraded ilmerge'ed file.

    The image I have attached shows the error I am getting.

    The WinFormsControls.dll is the ilmerge of the telerik dlls compiled from source code of Q3 2011.

    Thanks for any help you can provide.
  5. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 16 Dec 2011 Link to this post

    Hello Steve,

    Basically, what this articles stated is that you have to unintall all previous versions of RadControls for WinForms and then install just the latest one. 

    As to your issue, please note that you technically can use the merged assembly only for deployment purposes. You can't use it while developing your application. So, feel free to use the genuine Telerik assemblies to develop your application and then use the merged assemblies only when you need to deploy your application.

    Kind regards,
    Nikolay
    the Telerik teamQ3’11 of RadControls for WinForms is available for download (see what's new). Get it today.
  6. Steve
    Steve avatar
    4 posts
    Member since:
    Sep 2011

    Posted 16 Dec 2011 Link to this post

    so, how do I deal with the references then, do I have to change them for when I deploy? That would be a big hassle. 
  7. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 21 Dec 2011 Link to this post

    Hi Steve,

    Yes, you have to change the references when you deploy. Otherwise, the types contained in the merged assembly cannot be associated with the types from the UI.Design.dll assembly that is responsible for loading the correct design-time represenation of our controls.

    Write back if you have additional questions.

    All the best,
    Nikolay
    the Telerik team

    Q3’11
    of RadControls for WinForms is available for download (see what's new). Get it today.
Back to Top
UI for WinForms is Visual Studio 2017 Ready