Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

License Exception When Using Measurement Studio 7.1 .NET Libraries with Microsoft Visual Studio 2003 .Net

I know there is a patch for this issue with VS 2005 beta, but I'm wondering if there's a patch for VS 2003?  The message pops up as "The Measurement Studio assemblies used in this application are unlicensed.  Refer to the Measurement Studio .NET licensing topic in the NI Measurement Studio Help for more information. This program will automatically shut down in 30 second..."  and I am unable to use the Measurement Studio .Net tools in a windows console application unless I manually set the settings for a license (which I found in the Help section).  Anyway, I'm wondering if there's a patch or workaround so I don't have to manually set the settings for a license?
 
Thanks 
0 Kudos
Message 1 of 4
(3,748 Views)

What do you mean by "manually set the settings for a license"? Is there a licenses.licx file in your project and if so, what are the contents of this file? There are no known issues with Measurement Studio licensing in VS.NET 2003 as there are in VS.NET 2005 Beta 2, so there is no patch. It should work as long as your installation is correct and the appropriate entries are present in your project licenses.licx file.

- Elton

0 Kudos
Message 2 of 4
(3,739 Views)

I have to do the below steps to get the license to work:

-------

Because Visual Studio .NET embeds only the licenses of types that are included in the licenses.licx file, every licensed type used in the application must be included in the licenses.licx file. Visual Studio .NET does not embed licenses for managed or unmanaged Visual C++ applications. If you create a managed Visual C++ application or an unmanaged application using managed extensions that uses the Measurement Studio .NET class libraries, unlicensed dialog boxes appear at run time and cause your application to close. Complete the following steps to license the Measurement Studio .NET libraries in your application:

Select Project»Properties»Build Events»Pre-Build Event in Visual Studio .NET and add the following line to Command Line:

lc.exe /target:"$(TargetFileName)" /complist:"$(ProjectDir)licenses.licx"

Select Project»Properties»Linker»Input and add the following line to Embed Managed Resource File:

"$(ProjectDir)$(TargetFileName).licenses"

------
 
I'm just wondering if there's an option I can set to get around doing this everytime I create a project.
 
Thanks for the reply.
 
-Jerome
0 Kudos
Message 3 of 4
(3,736 Views)

Unforunately, this is a limitation of Visual C++ 2003. This is not an issue in any version of Visual C# or Visual Basic .NET, and this is no longer an issue for Visual C++ 2005. The steps that you're following from the licensing topic are what you have to do for any licensed .NET types in Visual C++ 2003.

- Elton

0 Kudos
Message 4 of 4
(3,726 Views)