Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

VB 2005/MS 8.1 app won't run

Hi,

 

I've developed my first application with Visual Studio 2005 (VB) and Measurement Studio 8.1.  I had  been using VS 2002/2003 and MS 6.0 without any issues.  All of my NI licenses for 8.1 are ok on my development pc on my desktop machine.  When I try to run my app on one of the machines in my lab the app won't start and the debug app window starts up.  I tried building two small test applications, one with MS 8.1(just a numeric edit control) and the other without, the app app with the numeric control wouldn't start. The lab PCs all have the correct framework installed.  Is there something I need to do to run applications built with MS8.1 on a different machine?

 

Curt

0 Kudos
Message 1 of 3
(3,468 Views)

Hi,

 

I resolved the problem.  All I had to do was set the 'Copy Local' property of any references to National Instrument NET libraries to TRUE.

 

Never mind.

 

Curt

0 Kudos
Message 2 of 3
(3,461 Views)

It seems like you are trying to run your application built on your dev machine (which has MeasurementStudio installed) on another machine (which does not have MeasurementStudio and hence the MeasurementStudio libraries). So, initially the app wouldn't run in the other machine as it could not find the MeasurementStudio assemblies required by the app.

 

So, when you set the "Copy Local" to true, the referenced assemblies are copied to the bin directory when you build the application in VisualStudio. So. now if you copy the bin directory to the lab machine, they'll run wiothout any problems as the required MeasurementStudio assemblies are now present in the app directory in the lab machine.

 

I suggest that you take a look at the NI MeasurementStudio help topics under the title "Deploying applications", which gives you information on how to deploy applications buit with NI MeasurementStudio (both C++ and .NET). To get to this, you canclick on "NI Measurement Studio Help", under MeasurementStudio menu in VisualStudio VS2005 IDE. The topics under NI Measurement Studio Help -> Deploying Applications would be helpful to you.

-Mahesh
National Instruments
0 Kudos
Message 3 of 3
(3,449 Views)