03-26-2010 03:54 PM
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?
03-26-2010 05:45 PM
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.
NickB
National Instruments