07-27-2005 02:25 PM
07-27-2005 02:43 PM
For each of the following assemblies, go to the References node in Solution Explorer, right-click on the assembly, and click Properties:
Is the Copy Local setting for any of these assemblies true? If so, that is probably the cause of the problem. The Copy Local setting for each of these assemblies must be false. If it is set to true, the Windows Forms designer will load the assemblies multiple times (once from the local copy and another from the GAC) and will cause type conflicts (such as the "Object type cannot be converted to the target type" message that you're seeing). Note that this issue is a general issue with the Windows Forms designer and has nothing to do with Measurement Studio assemblies. For example, try changing the Copy Local setting for the System.Windows.Forms.dll asembly tro true, close the designer, and re-open the designer.
If that is not the problem, please look at the properties for the references that were listed above and post the value that is shown in the Properties window for the Path and Version properties. Also, please go to the C:\Windows\Assembly folder in Windows Explorer and post the versions of the following assemblies that are in your global assembly cache:
- Elton
07-27-2005 03:06 PM
Changing "Copy Local" to false fixed everything.
Jeff S1949