Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

licensed assembiles becomes unlicensed for diffenrent version of MSVS

Hi,

 

I have a licensed Measurement Studio installed in my computer. I made a dll from it from an older version of Microsoft Visual Studio(MSVS) first.  I then made a program from the same MSVS to call this dll.  It works fine. No license issue whatsoever. However, when I used the same source code to make another program from a newer version of MSVS to call this dll.  I got no build error but in run time I got "Measurement Studio assembiles used in this application are unlicensed" error and the program cannot be run. All these programs are running on the same development computer. How do I fix this problem? 

 

Your help will be greatly appreciated.

 

 

0 Kudos
Message 1 of 6
(4,850 Views)

Sorry I forgot to mention the background of this work. I am developing a DLL for my end user.  I cannot assume the end users will use the same version of MSVS as I do.  So I tried diferent versions of MSVS then found this problem. What file(s) should I distribute to the end users beside my dll, please advice. 

0 Kudos
Message 2 of 6
(4,847 Views)

Hi z7z8

 

I guess for some background, what versions of MS and VS are you using? And could you check to make sure that everything within MS is licensed? To do this, go to the top tabs and select MEASUREMENT STUDIO » Licenses. You should see everything having a status of "Licensed". If you do not, could you take a screenshot and post it on the forum?

 

Thanks!

Andy F.
Applications Engineering
National Instruments
0 Kudos
Message 3 of 6
(4,809 Views)

Hi Andy,

 

Thank you for your interests.

 

I am working on MSVS 2003 with Measurement Studio 7.1.0.306.  I installed both from the original CDs from MS and NI.  On MSVS 2003 interface Measurement Studio menu "About", it displays the proper info.

 

I can use this version of MSVS to develop and run EXE files or dlls with some of Measurement Studio math fuctions with no problem. I can create an exe program from this version of MSVS to call this dll.  Everything seems to be fine.  Well, when I used MSVS 2012 to create an exe file to call the same dll it shows the "licence" problem for a few seconds then shuts off the program.  Anyway to solve the problem?

 

Sincerely,

 

z7z8

0 Kudos
Message 4 of 6
(4,732 Views)

Hi z7z8

 

Measurement Studio 7.1.0.306 is not supported on MSVS 2012 as they use different versions of the .NET Framework, among other things. As a quick reference, here is a link to a compatibility chart for many versions of Measurement Studio. This information is also included in the Readme for every copy of Measurement Studio released, which is included with every installation of Measurement Studio, and can be found on a Windows machine by going to Start » All Programs » National Instruments » <your version of Measurement Studio> » Measurement Studio Readme. 

 

To work with MSVS 2012, the oldest compatible version is Measurement Studio 2013.

Andy F.
Applications Engineering
National Instruments
0 Kudos
Message 5 of 6
(4,697 Views)

Hi Andy,

Thank you for your support on this issue.  That problem was solved.

 

Now I get another installation issue.  I am using Visual Studio 2013 now and making a project that call a dll that contains NI Measurement Studio 2008 components.  The project runs fine on my development computer. When I created a setup project using Visual Studio 2013 for this distribution, the setup project itself was built successfully.  However, when I run this setup in my development computer and the second computer, I always got a message box contains the following info:

NIMUPersistPartRegInfo:MSI error:1628 (<Unable to format error record.>)

 

During the installation, I also got another message box on my second computer shows "This file does not have a program associated with it for performing this action. Please install a program or, if one is already installed, create an association in the Default Program control panel.".

 

Anyway, the installation went through and files are copied to the target folder on both computers. When I run my exe file at my development computer, I got no problem running it.  On the second computer, the exe cannot run at all before any GUI can be displayed.  I got "System. InvailidOperationException" error.

 

If I do not use the dll with NI components, the program installs and runs on the second computer too. So it is not OS or computer hardware issue.

 

I guess the problem must be related to missing NI file(s) and/or registry. Can you please tell me what files to distribute and what registry to be added in order to use the NI Measurement Studio 2008 components in my program?

 

Thank you very much in advance.

0 Kudos
Message 6 of 6
(4,096 Views)