10-08-2009 04:50 PM
Got error when run .exe application (with NI references) on a PC.
So I modified the property of NI references : Copy Local -> true
re compile, then test, still got error if I use other PC without NI software installed.
Solved! Go to Solution.
10-08-2009 05:03 PM
There are 5 references:
NationalInstruments.Analysis.Professional
NationalInstruments.Common
NationalInstruments.NetworkVariable
NationalInstruments.UI
NationalInstruments.UI.WindowForm
10-08-2009 05:07 PM
Debug directory or Release directory does include:
NationalInstruments.Analysis.Professional.dll
NationalInstruments.Common.dll
NationalInstruments.NetworkVariable.dll
NationalInstruments.UI.dll
NationalInstruments.UI.WindowsForms.dll
However, still got error when run application on PC without NI installed.
10-09-2009 08:29 AM - edited 10-09-2009 08:30 AM
The NationalInstruments.Analysis.Professional.dll and NationalInstruments.NetworkVariable.dll .NET libraries both rely on underlying unmanaged DLLs for much of their functionality. These underlying DLLs need to be properly installed on the system before an XCOPY deployment of a .NET application that uses the .NET libraries will work.
The information you need to successfully deploy should be in the Measurement Studio help. Please refer to the following topics and let us know if you still have questions on how to get your application working on a deployed system:
NI Measurement Studio Help>>Deploying Applications>>Deploying Windows Applications
NI Measurement Studio Help>>Deploying Applications>>Network Variable Applications
David Rohacek
National Instruments
10-09-2009 01:13 PM
if using XCOPY, I find and locate all of required file dependencies in the table of Measurement Studio .NET XCOPY Deployment Files
So the next step is to copy/paste those dependencies dll files to the same directory where the .exe file located?
Do I have to use XCOPY command ?
Also
NationalInstruments.NetworkVariable --- Not applicable because NetworkVariable does not support XCOPY deployment.6
Is this mean that I have to use merge modules?
10-09-2009 04:53 PM
Is there a simple way to get those dependencies dll files and run the .exe file on client PC?
If it has to do the Merge Modules Deployment, Do you have a clear and simple instruction like step 1, 2, 3...
We did not expect it is so complex to let the .exe application run on client PC so that we can get the feedback and continue to focus on the application itself.
10-09-2009 06:46 PM
After copy / paste all of required dll files to the directory where .exe located, it works properly on the machine without MSudio installed.
I removed NationalInstruments.NetworkVariable.dll from my project to simply this process.
then copy/paste all dll files based on the Measurement Studio .NET XCOPY Deployment Files
You don't have to copy/paste the following files (no 3d)
msvcp80.dll 8
msvcr80.dll 8
msvcrt.dll 8
10-12-2009 09:25 AM
Hey Matt -
I just want to clarify for others who might read this post later that you only don't need those files *if* you are not using 3-D styles, as stated in the help document you referred to:
"The msvcp80.dll, msvcr80.dll, and msvcrt.dll are necessary only if 3D styles are used"
Glad you've gotten things working!
NickB
National Instruments