07-08-2005 05:52 PM
07-08-2005 06:11 PM
Go the References node for the project in the Solution Explorer, right-click on NationalInstruments.Common.dll, NationalInstruments.UI.dll, and NationalInstruments.UI.WindowsForms.dll and click Properties, then check the Copy Local setting in the Properties window. Is this setting true for any of these assemblies? If so, that could be the cause of the problem. The copy local setting must be false for each of those assemblies. If it is set to true, the Windows Forms designer will load the assemblies multiple times (once from the local copy and once from the GAC), hence causing type conflicts that will result in the errors that you are seeing. Note that this 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 assembly to true, close the designer, and re-open the designer.
If that is not the problem, have you upgraded to a newer version of Measurement Studio? This could possibly happen if you have mismatched dependency versions. Also, have you tried diffing the code between a time that it worked and now? If so, what are the differences? Have you tried diffing the project file and checking for differences? If so, what are those differences?
- Elton
07-08-2005 06:26 PM