Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

file or assembly name NationalInstruments.DAQmx, or one of its dependencies, was not found after running packaged .net setup on a clean machine (xp)

I have created a setup package (using the .net package wizard) for my .net C# app which uses Measurement
Studio 7.1 components (daqmx).

I've included all necessary merge modules and components..

Setup is run on a clean XP machine (sp2)..

I run the app.. and it fails on this line (or any line daqmx related)

                myTask = new Task("aiTask");

with this error

file or assembly name NationalInstruments.DAQmx, or one of its
dependencies, was not found

I've checked and the dll (nationalinstruments.daqmx.dll) is both in the install folder and the assembly
cache too.

Anyone know of a fix for this (Or what dlls I may be missing).  I did notice a few policy.nationalinstruments files in the assembly on the development pc.. but I couldnt see how to import them into the setup package if they are the culprit.

 

Thanks

0 Kudos
Message 1 of 4
(3,632 Views)
Hello,
 
The DAQmx assembly is not the DAQ driver, it is a C# interface to the DAQ driver.  You will have to install DAQmx from either a DAQ distribution or the Driver CD included with Measurement Studio.  You should only have to install the minimal DAQmx driver since your deployment project includes the files necessary to access DAQmx through C# (NationalInstruments.DAQmx.dll). 
 
As a good sign of how to make sure you can make this work, you should be able to see your DAQ board properly in the Window's Device Manager and in NI-MAX before you install your application using the VIsual Studio setup project.
 
Jeff
NI 
0 Kudos
Message 2 of 4
(3,627 Views)
Thanks for the tip.. I did find that the setup installer routine from the device driver cd seemed to make things work...
 
I'm wondering if you know of a specific msi package (file) within the cd, that does the trick.. this way I can package things up a bit easier?
 
Thanks,
 
Mark
0 Kudos
Message 3 of 4
(3,619 Views)

NI-DAQmx 7.5 was just released which allows you to install NI-DAQmx only, without Traditional NI-DAQ, so it has a smaller footprint than previous versions of the driver.  There is not a way to extract a single msi file and include it with your installation -- you have to run the full installer.  However, you may be able to run a batch file that starts the installer for you. 

Doug M
Applications Engineer
National Instruments

 
Doug M
Applications Engineer
National Instruments
For those unfamiliar with NBC's The Office, my icon is NOT a picture of me 🙂
0 Kudos
Message 4 of 4
(3,605 Views)