Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

FileNotFoundException Nationalinstruments.DAQmx.dll

Hello

 

errorMessage.jpg

 

I have created a measurement and trending application in a school project, using the NI USB TC-01 device (type J). On the development computer I have installed the DAQ software, and referenced the DLLs "NationalInstruments.DAQmx" and "NationalInstruments.Common". I have also checked the Copy Local property. Running the application on the dev-PC while debugging in VisualStudio gives me no problems. Everything works fine. As well does running the application after distributing it using this guide: http://digital.ni.com/public.nsf/allkb/ED87C183E056CAC386256DF1004E54C6.

 

What I would like to do, is moving the installation files to another computer which has not installed the NI-software, and install the application there. That I have managed, but when I'm running the application and the timer that I use for logging temperature to the database activates, I get an exception:

 

FileNotFoundException

Could not load file or assembly 'NationalInstruments.DAQmx.dll' or one of its dependencies. The specified module could not be found.

 

A list of DLL-files in my executing directory:

NationalInstruments.DAQmx.ComponentModel.dll

NationalInstruments.DAQmx.dll

 

Things I have tried already:

Using the normal "Publish" method in VS. Did not work (even when I included the .dll files).

Using the mentioned guide to create an installer. Did not work. The above list is the files in that directory.

 

I would appreciate any kind of help with this. Please tell me if you could use more information about my software. I don't know what I should include.

 

Glenn B

Message 1 of 1
(6,151 Views)