Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Could not load file or assembly - Window 7

Hi!

I have measurement studio 8.6.0.189, Visual Studio 2008 (v 9.0.30729.1.SP), framework 3.5SP1.

I created a setup program to be installed on other machines. It usualy worked fine until some people got a new PC with window 7 64 bit. The error message I got when starting a window containing a NI graph is:

"Could not load file or assembly 'NationalInstruments.UI, Version = 8.6.35.189, Cuture=neutral, PublicKey Token = '18cbae0f9955702' or one of its dependencies. An attempt was made to load a program with an incorrect format."

 

I checked and the NationalInstrument.UI.dll is present on the setup bundle (copy local = true in reference setting).

 

So, what did I do wrong?

0 Kudos
Message 1 of 2
(3,557 Views)

Hello -

 

The platform target for your project is likely "Any CPU".  Measurement Studio 8.6 only supports targeting the x86 platform (this recently changed for Measurement Studio 2009, which supports "Any CPU"). To change the platform target to x86, open the project properties and visit the "Build" section.  I'm assuming you're using C# for the below screenshot - but VB.NET is similar.

 

platformtarget.png

 

NickB

National Instruments 

Message 2 of 2
(3,554 Views)