Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

got error when run NI application .exe on PC wihout NI software installed

Solved!
Go to solution

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.

 

0 Kudos
Message 1 of 8
(5,419 Views)

There are 5 references:

NationalInstruments.Analysis.Professional

NationalInstruments.Common

NationalInstruments.NetworkVariable

NationalInstruments.UI

NationalInstruments.UI.WindowForm

0 Kudos
Message 2 of 8
(5,416 Views)

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.

0 Kudos
Message 3 of 8
(5,414 Views)

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

NI Measurement Studio Help>>Deploying Applications>>Merge Modules and Deployment Files>>.NET Merge M...

NI Measurement Studio Help>>Deploying Applications>>Merge Modules and Deployment Files>>.NET XCOPY D...

 

David Rohacek

National Instruments

 

 

Message Edited by drohacek on 10-09-2009 08:30 AM
Message 4 of 8
(5,400 Views)

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?

 

 

 

 

 

 

 

 

 

 

 

 

0 Kudos
Message 5 of 8
(5,390 Views)

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.

 

 

0 Kudos
Message 6 of 8
(5,381 Views)
Solution
Accepted by topic author ucla matt

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 

 

Smiley Tongue 

0 Kudos
Message 7 of 8
(5,377 Views)

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 

0 Kudos
Message 8 of 8
(5,361 Views)