Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Measurement Studio 2010 FxCop Error: Locating NI Assembly Reference

Solved!
Go to solution

Hello,

 

Please look at the enclosed snapshot for more details.  Basically, I have a Measurement Studio project compiled, and I'm running FxCop on the compiled dll.  FxCop is looking for an older version of the NI.Common.dll that is being referenced by NI.DAQmx.dll.

 

Current NI dll versions on system:

NationalInstruments.Common.dll - 9.0.35.362

NationalInstruments.DAQmx.dll - 9.1.35.15

 

Version that FxCop is looking for referenced by NationalInstruments.DAQmx - 8.9.35.302

 

Any help would be much appreciated!

 

Thanks!

-J

0 Kudos
Message 1 of 11
(5,199 Views)

Are you getting an error when you run the program, or is just FxCop saying the versions are different and the program still runs?

Jensen
National Instruments
Applications Engineer
0 Kudos
Message 2 of 11
(5,138 Views)

Thanks for getting back to me.  I am getting an error when I run the program.  I noticed this error with VisaNS on a different module, but it allowed me to skip and proceed.  I am thinking I may need the NationalInstruments.Common.dll version 8.9.35.302 as a possible solution.  Would you have any thoughts?

0 Kudos
Message 3 of 11
(5,133 Views)

Well, the error message seems pretty clear. The assembly you are referencing isn't the right one, you need the other version (it is kind enough to specify it too).

 

Do you have multiple instance of Nidaqmx installed on your computer?

0 Kudos
Message 4 of 11
(5,127 Views)

I do have other instances of DAQmx installed (did a search for the dll):

 

NationalInstruments.DAQmx.dll

for VS2005 - 9.1.20.15

for VS2008 - 9.1.35.15

for VS2008 (64-bit) - 9.1.35.15

 

NationalInstruments.Common.dll

for VS2005 - 9.0.20.362

for VS2008 - 9.0.35.362

8.1.20.618

8.7.20.133

8.7.35.133

 

I guess my question is why would DAQmx, version 9.1.35.15, be referencing a, seemingly older, NationalInstruments.Common.dll, version 8.9.35.302?  Also, if anyone could provide version 8.9.35.302 of the Common.dll that would be great!  I would like to try to use this dll to see if that would fix the problem.

 

Thanks!

 

-J

0 Kudos
Message 5 of 11
(5,097 Views)

How did you get these DLL files?  Did you just copy the files from another computer, or did you run the installer for the DAQmx driver?  If you are just copying files then I would suggest you download the driver, and run the installer.  That way you can be sure you will have all of the dependencies you need for the files.  The DAQmx drivers can be found here.

Jensen
National Instruments
Applications Engineer
0 Kudos
Message 6 of 11
(5,095 Views)

I didn't actually install anything on my machine.  Since I work for a large corp., it was done by a third party support helpdesk.  It's quite comical really, but I won't delve into details.  I believe Measurement Studio 2010 was installed, then the drivers.  Thank you for the link, I will check it out.

0 Kudos
Message 7 of 11
(5,092 Views)

Hi all,

 

Please take a look at the following error snapshot.  Something to keep in mind too is that I have Labview 8.5 installed as well as Measurement Studio 2010.  I removed the old DAQmx driver, and tried installing the 9.2.2 one and it fails because it's trying to remove "NI-MX Expert Framework 2.6.1".  I'm assuming this particular item is located in a different module, but I can't seem to locate it using that name.  Would anyone know which module to uninstall?  I'm trying to preclude uninstalling everything related to NI, and reinstalling Measurement Studio.  I have a feeling the wrong NI drivers were installed for Measurement Studio, but I could be wrong.

Thanks for the help again!

0 Kudos
Message 8 of 11
(5,055 Views)

Are you able to uninstall the old drivers through Windows Add/Remove Programs?

Jensen
National Instruments
Applications Engineer
Message 9 of 11
(5,025 Views)
Solution
Accepted by topic author jongj

Long story short, I went ahead and uninstalled everything related to NI via the MsiBlast tool I found on a different thread.  It turns out some of the drivers were looking for uninstall .msi files located on a network drive that have since been moved to a different location.  Currently waiting for a reinstall of Measurement Studio, and hopefully this will solve all of my problems.  So I guess I'll consider this a closed thread for now.  Thanks for all of the help!

0 Kudos
Message 10 of 11
(5,023 Views)