Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Reference required to assembly 'NationalInstruments.Common, Version=9.1.20.163, Culture=neutral, PublicKeyToken=4544464cdeaab541' containing the implemented interface 'NationalInstruments.ISynchronizeCallbacks'. Add one to your project.

Solved!
Go to solution

HI

 

Need some help. 

 

System 1: Win 7 Pro, SP1, 32 Bit

 

System 2: Win 7 Home Premium SP1, 64 bit

 

System 3: Win 7 Pro, 64 bit

 

All three system have Visual Studio 2010 with Measurment Studio 2010 SP1 and are trageting the 4.0 framwork

 

 

All systems have VS2010 prebuild events IF EXIST C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\ldr64.exe C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\ldr64.exe setwow

 

All systems have post build events IF EXIST C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\ldr64.exe C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\ldr64.exe setwow

 

I have a shell program that I use for all tester applications using the DAQmx driver (all systems are DAQmx 9.5.1)

 

My shell runs fine on system 1.  I was able to take the code from system 1 and get it to run on system 3.  I can not get my shell to run on system 2.  see the subject line for error code.  Everything that I have tried in the past does not work for system 2.  This has involved:

Cleaning the solution before compiling

Removing refrences and then replacing them

Go back to System 1 and try different .net framworks and targeted CPU's

 

Anything I do to system 2 to make this work only makes things worse; more errors show up.  The error in the subject line shows up 23 times in system 2 before I make changes and then make things worse.

 

Also one more peice of info.  When I installed Measurment Studio 2010 onto system 2 for both version of MS2010 (orginal and SP1) the same thing happens.  After installing the NI installer gives a message that the application did not install with no other explination or error code.  When I go to NI Max it shows that the software is installed.  I then tryied to do a repair on the install.  Still getting the same problem.

 

 

Jeff

 

0 Kudos
Message 1 of 8
(7,917 Views)

What version of NationalInstruments.Common are you using on each of these systems? I notice that in the error message it lists 9.1.20.163 which refers to the .NET 2.0 version of the assembly (9.1.40.162 being the .NET 4.0 version). Make sure that you have the .NET 4.0 version in the project references if the other NI assemblies you are using are the .NET 4.0 assemblies.

National Instruments
0 Kudos
Message 2 of 8
(7,906 Views)

See attached picture, from system 2 (nonworking)The DAQmx driver is version 2.0, the common is 4.0.  I was not able to find the 4.0 version of the DAQmx driver on the non working system.  WHen I look at MAX it shows DAQmx 9.5.1 driver is installed.  Do I need to reinstall the DAQmx driver so that is gets the 4.0 version with all its pieces on my machine?

 

System 3 has a 4.0 version of daqmx in a folder called Asembilies (64-bit), system 2 does not have this folder.  I did not look at the verion of the .Commen

 

Jeff

 

0 Kudos
Message 3 of 8
(7,886 Views)

Hi Jeff,

 

You can download the DAQmx driver 9.5.1 and when you install, choose the custom option. Under the Application Development Support tree, you can choose to install support for the .NET Framework 4.0. Hope this helps!

 

Regards,

Anjelica W.
National Instruments
Product Marketing Manager
FlexLogger and TestStand
0 Kudos
Message 4 of 8
(7,867 Views)

More help please. I downloaded the file to my non-working machine and the install will not run. See attached screen capture. I have a 64 bit system, but the error message says it is not a valid Win32 application. Ok, very confused now. Please provide an answer today, I need to have this machine running by Friday.

 

Thank You.

 

Jeff

0 Kudos
Message 5 of 8
(7,838 Views)

I have seen this error before and it typically is a result of a corrupted download or anti-virus software. I sent you a private message through the forums to provide you an alternative method to download the software.

National Instruments
0 Kudos
Message 6 of 8
(7,829 Views)
Solution
Accepted by topic author JDSTC

Thank you.

 

That download worked. I have the 4.0 version of the DAQmx drive displayed in the references; and my program runs on the laptop.  Yeah!

 

FYI.  I did unistall DAQmx 9.5.1 before installing the download provided.

 

Jeff

0 Kudos
Message 7 of 8
(7,824 Views)

More info for solution.  I also turned off antivirus (AVG free 2013) and disconnected from the internet during the install

0 Kudos
Message 8 of 8
(7,815 Views)