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