Our WinForms application loads some assemblies into the Load and LoadFrom contexts. Some RadButtons are used by assemblies in each group, so we also load Telerik.WinControls.dll into both contexts. However when we do this, some machines receive an error when opening the main form. It appears that a telerik library is popping the dialog with the following text:
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:
D:\Documents and Settings\09006318\Local Settings\Application Data\Test App\Assemblies\Telerik.WinControls.dll
Designer Assembly:
C:\Program Files\Test App\Telerik.WinControls.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.
Of course Visual Studio is not installed on any of the machines with this problem. If we only load the Telerik libraries into the Load context, the error disappears. What is causing this error?
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:
D:\Documents and Settings\09006318\Local Settings\Application Data\Test App\Assemblies\Telerik.WinControls.dll
Designer Assembly:
C:\Program Files\Test App\Telerik.WinControls.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.
Of course Visual Studio is not installed on any of the machines with this problem. If we only load the Telerik libraries into the Load context, the error disappears. What is causing this error?