Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Measurement Studio 6.0 on Windows 7 64-bit

I have a Visual Studio 2005 C# project that had been running with Measurement Studio 6.0 with updater on Windows 7 32-bit.  I recently updated the project to work on Windows 7 64-bit target on Any CPU.  However, I can't seem to get the NationalInstrument.ui.windowsforms.legend to work during runtime.  The project compiles just fine, but crashes when it tries to load up the graph legend.  It will probably fail to run the NI graph, too.  Is there any issue with Measurement Studio 6 on Windows 7 64-bit?

 

Thank you for any respond.

0 Kudos
Message 1 of 4
(4,330 Views)

Hi LQuan,

 

When your application crashes, is there a specific error code or message that is returned? Also, does the application crash as soon as it starts running, or is it when you specifically try to access the graph legend by clicking on it or interacting with it?

Tom D.
Staff Software Engineer
NI
0 Kudos
Message 2 of 4
(4,306 Views)

Hi Tom,

 

it crashes where the InitialzeComponent is trying to create it:

 

this.legend = new NationalInstruments.UI.WindowsForms.Legend();

 

Error Message:

 

An unhandled exception of type 'System.IO.FileLoadException' occurred in NationalInstruments.UI.WindowsForms.dll

Additional information: Could not load file or assembly 'NationalInstruments.Common, Version=7.0.0.341, Culture=neutral, PublicKeyToken=4544464cdeaab541' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

 

When I installed Measurement Studio 6.0, it put the NationalInstruments.Common.dll version 8.0.11.141 in the GAC/assembly.  I am setting up 2 computers, Win7 32-bit and Win7 64-bit.  The 32-bit works fine with ONLY version 8.0.11.141 in the GAC/assembly.  The 64-bit version is what I am having problem with.

 

Both computers are new with only Measurement Studio 6.0 with Updater installed.  There was never any version 7.0.0.341 installed in these computers.

 

Thank you in advance for your insight.

 

0 Kudos
Message 3 of 4
(4,302 Views)

Hi LQuan,

 

Interesting that the compiler is looking for version 7.0.0.341. First, I'd recommend navigating to Measurement Studio -> 'Update Measurement Studio Project References' when developing the 64-bit version of the application.

 

If this does not help, see if you can navigate to the following folder: C:\Program Files (x86)\National Instruments\MeasurementStudioVS<version number>\DotNET

 

...and locate, in either the Assemblies or Assemblies (64-bit) folder, the version of NationalInstruments.Common that the compiler is looking for, or a version closer to it.

Tom D.
Staff Software Engineer
NI
0 Kudos
Message 4 of 4
(4,281 Views)