Quantcast
Channel: Measurement Studio for .NET Languages topics
Viewing all articles
Browse latest Browse all 1999

DAQmx.dll won't load

$
0
0

Hi,

 

I'm using Visual Studio 2013 and NI-DAQmx 9.8.0 on two different Windows 7 computers.  My main development computer has had several DAQmx upgrades.  The second computer started with version 9.4 and was recently upgraded.

 

On my main development computer, the application loads and runs properly.  After copying the Visual Studio project files to the second computer, the application (from within the Visual Studio environment) asserts the following exception:


"An unhandled exception of type 'System.IO.FIleLoadException' occurred in App.exe.  Additional information: Could not load file or assembly 'NationalInstruments.DAQmx.dll' or one of its dependencies.  A dynamic link library (DLL) initialization routine failed."

 

I checked the DAQmx.dll version in Visual Studio on my main computer and noticed that version 9.6.45.292 was used.  This version did not exist on the second computer (a later version does, however).  I copied DAQmx.dll version 9.6.45.292 (from the GAC_32 directory)  to the second computer and placed it in the application's root directory, and then changed Visual Studio's reference of DAQmx.dll to point to it specifically.  However, I still get the same exception error.

 

I have tried changing the Visual Studio reference to different versions of DAQmx.dll, but I get the same error no matter which version I try.

 

Oddly, in the project file on my main computer, the reference path for DAQmx.dll points to the GAC_32 subdirectory under the main Windows directory, while the path on my second computer (previously) showed a relative path under C:\Program Files.  As I stated above, I've now changed it to point to the copied version of DAQmx.dll in the application directory, but it still doesn't work.

 

I need to know how to get my application to load DAQmx.dll.

 

Thanks for any help.


Viewing all articles
Browse latest Browse all 1999

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>