Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Moving Measurement Studio DotNET Assemblies to non-default directory

The Measurement Studio DotNET assemblies produce exceptions when they are moved to their non-default directory.

 

I require to place the assemblies into another folder for version control.

 

Does the Enterprise Edition of Measurement Studio work when the assemblies are placed in a non-default directory?

0 Kudos
Message 1 of 5
(4,622 Views)

Hi dwheatley,

 

Are you trying to move the assemblies from the <Measurement Studio>\DotNET\Assemblies\Current directory?

 

I'm curious about the exception that is produced. Is this an exception that occurs at run-time or design-time? Could you provide a screenshot of the exception?

 

Are you experiencing this problem on your development machine (where Measurement Studio is installed) or on a target machine (where Measurement Studio may or may not be installed)? 

Manooch H.
National Instruments
0 Kudos
Message 2 of 5
(4,603 Views)

Hi Manooch,

 

Yes I am trying to move the assemblies from the <Measurement Studio>\DotNET\Assemblies\Current directory.

 

The exception is caused at run-time. Please find the screenshot attached. The National.Instruments.Analysis.Dsp.Transforms class is referenced, and causes an exception "NationalInstruments.Restricted.AnalysisLicenser is unlicensed".

 

Note I am using the evaluation version of Measurement Studio.

 

The problem is experienced on the development machine.

 

Thank you.

Download All
0 Kudos
Message 3 of 5
(4,598 Views)

Hello dwheatley,

 

From the information and error you've provided,  I think you are receiving this error because Measurement Studio is not able to license the assemblies that you've moved. In order for the assemblies to be properly licensed, the assembly's license file (for example, the EnterpriseAnalysis.lic file for the Analysis assembly) must be located in the <Measurement Studio>\DotNET\Assemblies\ directory.

 

Have these license files been moved from the Assemblies directory? 

Manooch H.
National Instruments
0 Kudos
Message 4 of 5
(4,573 Views)

Hi Manooch,

 

I have resolved my problem.

 

When the <Measurement Studio>\DotNET\Assemblies\NationalInstruments.Analysis.Enterprise dll is added as a reference to a Visual Studio 2008 project, a licenses.licx file is generated and placed in the Properties folder for the VS project. This file contained the following

 


# The following section of this file was autogenerated by Measurement Studio.  Do not edit or remove this file from the project.
# This file is used for licensing Measurement Studio components.
# Begin Measurement Studio licenses
NationalInstruments.Restricted.AnalysisLicenser, NationalInstruments.Analysis.Enterprise, Version=8.6.35.192, Culture=neutral, PublicKeyToken=18cbae0f9955702a
# End Measurement Studio licenses

 

 

When a copy of NationalInstruments.Analysis.Enterprise.dl, located in a different folder, is added as a reference to the project, this licenses.licx is not created.

 

So to resolve my problem, I copied licenses.licx, removed the  <Measurement Studio>\DotNET\Assemblies\NationalInstruments.Analysis.Enterprise dll reference from my project, added my <Version Control Repository>\NationalInstruments.Analysis.Enterprise dll reference, and placed the copied licenses.licx into the <VSproject>\Properties folder.

 

Many thanks for your support.

Dean.

 

 

0 Kudos
Message 5 of 5
(4,566 Views)