Measurement Studio .NET XCOPY Deployment Files

Measurement Studio 2012 for Visual Studio 2010 Help

Edition Date: August 2012

Part Number: 372636F-01

»View Product Info
Download Help (Windows Only)

See Also


Using XCOPY deployment for Measurement Studio applications is a multi-step process. Review each step carefully to ensure successful deployment:

Step 1: Determine the Files You Need to Copy

Use the following table to determine the necessary files to copy when deploying your Measurement Studio Windows Forms or Web Forms .NET application.

If you copy the Intel Math Kernel Library (MKL) libraries or mesa.dll with your deployment application, you need to also copy their respective license agreements and/or notices. Refer to <National Instruments>\_Legal Information.txt for information on where to find the license agreements and/or notices to include for each third-party component.

Measurement Studio Assembly File Dependencies
NationalInstruments.Analysis.Enterprise NationalInstruments.Analysis.Enterprise.dll
NationalInstruments.Common.dll
NationalInstruments.Common.Native.dll
NationalInstruments.NiLmClientDLL.dll
NationalInstruments.MStudioCLM.dll
nianlys.dll
All Math Kernel Library (MKL) DLLs
NationalInstruments.Analysis.Professional NationalInstruments.Analysis.Professional.dll
NationalInstruments.Common.dll
NationalInstruments.Common.Native.dll
NationalInstruments.NiLmClientDLL.dll
NationalInstruments.MStudioCLM.dll
nianlys.dll
All Math Kernel Library (MKL) DLLs
NationalInstruments.Analysis.Standard NationalInstruments.Analysis.Standard.dll
NationalInstruments.Common.dll
NationalInstruments.Common.Native.dll
NationalInstruments.NiLmClientDLL.dll
NationalInstruments.MStudioCLM.dll
nianlys.dll
All Math Kernel Library (MKL) DLLs
NationalInstruments.Common NationalInstruments.Common.dll
NationalInstruments.Common.Native.dll
NationalInstruments.NiLmClientDLL.dll
NationalInstruments.MStudioCLM.dll
msvcr100.dll
NationalInstruments.Controls NationalInstruments.Controls.dll
NationalInstruments.Common.dll
NationalInstruments.Common.Native.dll
NationalInstruments.NiLmClientDLL.dll
NationalInstruments.MStudioCLM.dll
msvcp100.dll
msvcr100.dll
msvcrt.dll
NationalInstruments.Controls.Booleans NationalInstruments.Controls.Booleans.dll
NationalInstruments.Controls.dll
NationalInstruments.Common.dll
NationalInstruments.Common.Native.dll
NationalInstruments.NiLmClientDLL.dll
NationalInstruments.MStudioCLM.dll
msvcp100.dll
msvcr100.dll
msvcrt.dll
NationalInstruments.Controls.Graphs NationalInstruments.Controls.Graphs.dll
NationalInstruments.Controls.dll
NationalInstruments.Common.dll
NationalInstruments.Common.Native.dll
NationalInstruments.NiLmClientDLL.dll
NationalInstruments.MStudioCLM.dll
msvcp100.dll
msvcr100.dll
msvcrt.dll
NationalInstruments.Controls.Numerics NationalInstruments.Controls.Numerics.dll
NationalInstruments.Controls.dll
NationalInstruments.Common.dll
NationalInstruments.Common.Native.dll
NationalInstruments.NiLmClientDLL.dll
NationalInstruments.MStudioCLM.dll
msvcp100.dll
msvcr100.dll
msvcrt.dll
NationalInstruments.Net Not applicable because DataSocket does not support XCOPY deployment. You can deploy applications that include DataSocket by building an installer. Refer to Deploying Measurement Studio Windows Applications for more information.
NationalInstruments.NetworkVariable Not applicable because NetworkVariable does not support XCOPY deployment. Refer to Measurement Studio .NET Merge Modules and Deploying Measurement Studio Network Variable Applications for more information.
NationalInstruments.Tdms NationalInstruments.Common.dll
NationalInstruments.Common.Native.dll
NationalInstruments.Tdms.dll
NationalInstruments.NiLmClientDLL.dll
NationalInstruments.MStudioCLM.dll
tdms.dll
cvitdms.dll
NationalInstruments.UI NationalInstruments.UI.dll
NationalInstruments.UI.Styles3D.dll
NationalInstruments.Common.dll
NationalInstruments.Common.Native.dll
NationalInstruments.NiLmClientDLL.dll
NationalInstruments.MStudioCLM.dll
mesa.dll
msvcp100.dll
msvcr100.dll
msvcrt.dll
NationalInstruments.UI.WebForms NationalInstruments.UI.WebForms.dll
NationalInstruments.UI.dll
NationalInstruments.UI.Styles3D.dll
NationalInstruments.Common.dll
NationalInstruments.Common.Native.dll
NationalInstruments.NiLmClientDLL.dll
NationalInstruments.MStudioCLM.dll
mesa.dll
msvcp100.dll
msvcr100.dll
msvcrt.dll
NationalInstruments.UI.WindowsForms NationalInstruments.UI.WindowsForms.dll
NationalInstruments.UI.dll
NationalInstruments.UI.Styles3D.dll
NationalInstruments.Common.dll
NationalInstruments.Common.Native.dll
NationalInstruments.NiLmClientDLL.dll
NationalInstruments.MStudioCLM.dll
mesa.dll
msvcp100.dll
msvcr100.dll
msvcrt.dll

Step 2: Locate the Files You Need to Copy

Use the following table to locate the necessary files to copy when deploying your Measurement Studio Windows Forms or Web Forms .NET application.

File Dependency Location
NationalInstruments.Analysis.Enterprise.dll

The 32-bit version of the following assemblies is located in the Program Files\National Instruments\MeasurementStudioVS2010\DotNET\Assemblies\Current directory. The 64-bit version of the following assemblies is located in the Program Files\National Instruments\MeasurementStudioVS2010\DotNET\Assemblies (64-bit)\Current directory.

NationalInstruments.Analysis.Professional.dll
NationalInstruments.Analysis.Standard.dll
NationalInstruments.Common.dll
NationalInstruments.Common.Native.dll
NationalInstruments.Controls.dll
NationalInstruments.Controls.Booleans.dll
NationalInstruments.Controls.Graphs.dll
NationalInstruments.Controls.Numerics.dll
NationalInstruments.MStudioCLM.dll
NationalInstruments.NiLmClientDLL.dll
NationalInstruments.Tdms.dll
NationalInstruments.UI.dll
NationalInstruments.UI.WebForms.dll
NationalInstruments.UI.WindowsForms.dll
NationalInstruments.UI.Styles3D.dll
tdms.dll Program Files\National Instruments\Shared\TDMS
cvitdms.dll Windows\System32
mesa.dll The mesa.dll is located in the Program Files\National Instruments\Shared\Mesa directory.

The mesa.dll is necessary only if 3D styles are used. If deploying a Web application, place mesa.dll in the SYSTEM32 directory.

You must install the Microsoft Visual C++ 2008 Redistributable Package on the target system when deploying projects that use 3D styles.
msvcp100.dll Program Files\Microsoft Visual Studio 10.0\VC\redist\x86\Microsoft.VC100.CRT

The msvcp100.dll is necessary only if you use 3D styles.
msvcr100.dll
msvcrt.dll SYSTEM32 directory; necessary only if you use 3D styles.
All Math Kernel Library (MKL) DLLs The Math Kernel Libraries (MKL) DLLs are located in the Program Files\National Instruments\Shared\MKL\ directory. Copy all MKL DLLs in the Program Files\National Instruments\Shared\MKL folder to your application's directory in a flat file structure.
nianlys.dll Program Files\National Instruments\Shared\Analysis

Step 3: Locate Device Drivers

The following assemblies requires a device driver that is located on the National Instruments Device Drivers DVD included with Measurement Studio. Alternatively, refer to NI Drivers and Updates on ni.com and enter Device Drivers into the search field to download the latest version of the NI Device Drivers:

Step 4: Review Special Considerations for NationalInstruments.Common.dll

NationalInstruments.Common.dll uses a publisher policy file to redirect applications to always use the newest version of NationalInstruments.Common.dll installed on the system. However, if you XCOPY an application without a configuration file and the assemblies included in the application were built with an older version of NationalInstruments.Common.dll, deployment does not work. To ensure the correct configuration file is deployed, you can create an installer that installs the NationalInstruments.Common.dll component. Refer to Measurement Studio .NET Merge Modules for more information on how to create an installer. If you do not create an installer, with Web Forms, you also can add the following example snippet to the web.config file; however, you need to update the versions listed in the example. Run a tool, such as Ildasm.exe, on a dependent assembly, such as NationalInstruments.UI or NationalInstruments.UI.WebForms, to determine the older version of NationalInstruments.Common that should be redirected.
configuration
runtime
assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"
dependentAssembly
assemblyIdentity name="NationalInstruments.Common"
publicKeyToken="18cbae0f9955702a"
culture="neutral"/
bindingRedirect oldVersion="9.1.40.145"
newVersion="9.1.40.149"/
/dependentAssembly
/assemblyBinding
/runtime
/configuration

Step 5: Understand the Difference Between 32-bit and 64-bit File Versions

Step 6: Include Design Time Functionality of Measurement Studio UI Controls at Run Time

If your application uses Measurement Studio UI controls run-time property editors, you must include the NationalInstruments.UI.Design assembly in your XCOPY deployment. For example, if your application includes the property editor control or a UI control that has a property grid, you must include the NationalInstruments.UI.Design assembly in your XCOPY deployment. The NationalInstruments.UI.Design assembly is located in the InstallDir\DotNET\Assemblies\<NationalInstruments.UI.Design.assemblyversion>\ folder. By default, the InstallDir file path is: Program Files\National Instruments\<MeasurementStudio>.

See Also

WAS THIS ARTICLE HELPFUL?

Not Helpful