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

Assembly Confusion in Telerik Winforms

5 Answers 217 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Yosief
Top achievements
Rank 2
Yosief asked on 28 Apr 2010, 10:28 AM
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


5 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 29 Apr 2010, 07:06 AM
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.
0
Steve
Top achievements
Rank 1
answered on 14 Dec 2011, 02:50 AM
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.
0
Nikolay
Telerik team
answered on 16 Dec 2011, 05:58 PM
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.
0
Steve
Top achievements
Rank 1
answered on 16 Dec 2011, 06:26 PM
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. 
0
Nikolay
Telerik team
answered on 21 Dec 2011, 02:23 PM
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.
Tags
General Discussions
Asked by
Yosief
Top achievements
Rank 2
Answers by
Nikolay
Telerik team
Steve
Top achievements
Rank 1
Share this question
or