Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

C# NationalInstruments.UI.WindowsForms.Led is unlicensed.

NationalInstruments.UI.WindowsForms.Led is unlicensed.

I am developing a .Net applications in VS2005 using C# I included a LED control in my application.  Everything was fine initially compiled and ran flawlessly.  The issue arrived after i continued development.  I completed a rev 2 to my application and copied it entire solution from one development station to another.  That is when the licenses went away.  I fixed the problem but uninstalling Measurement Studio and re-installing.  But this problem occurs everytime now.  I do not want to do the uninstall/reinstall everytime copy the solution.  What is the right thing to do?
Download All
0 Kudos
Message 1 of 5
(10,875 Views)
Hi olddude,

I wanted to clarify the exact steps you took to get into this state so I can try and replicate the issue. So machine A for example had Measurement Studio 8.1.1 and your application that you developed. You then copied over your solution to machine B. You then un-installed Measurement Studio 8.1.1 on machine A and installed it on machine B. Even after installing Measurement Studio 8.1.1 on machine B, you still are receiving unlicensed error?

On machine B,

1) Do you have any .lic files in the <MeasurementStudioVS2005>DotNET\Assemblies folder like WindowsForms.lic?
2) Do you get unlicensed errors if you create a new Measurement Studio project using the NI we project wizards?
3) Do the examples work?
4) What happens if you remove and then re-add the Measurement Studio references from the References folder in the Solution?
5) Have you tried refreshing the license file via option under the Measurement Studio menu?

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 2 of 5
(10,863 Views)
Hi, I am having a very similar problem, Published an application using Microsoft 'one click' , which works fine on one system, when  I try to install my app on another system , I get a 'cannot find the specified Module error'. Now i have tracked this down to the NationalInstruments.UI.WIndowsForms class and more specifically the led. I have copied all the required assemblies to the GAC on the machine, at the most recent versions I have, and it still cant find the Windows forms class. With any changes i make I either get that it cant find the Module or the Led is unlicensed. Please, what am I doing wrong or not doing? I am running the version 8.1.1 of measurement studio in VS2005 with the enterprise edition.
 
Thanks in advance
 
Chris P
Manufacturing Engineer - Optics
0 Kudos
Message 3 of 5
(10,382 Views)
Hello Chris,

I've been looking into this issue and ClickOnce does not seem to work in Measurement Studio 8.1.2.  However, it does work with Measurement Studio 8.5.  We do not fully support ClickOnce but I am continuing to look into it to see if there is anything we can do to get it working in 8.1.2. 

I will post back later with what we find.
Kristen
National Instruments
0 Kudos
Message 4 of 5
(10,350 Views)
Hi Chris,

As Kristen mentioned, Measurement Studio doesn't support ClickOnce deployment as we only support deployment via merge modules or XCOPY. Because of this fact, I am suggesting that you switch to one of these supported deployment methods.  I would encourage you to read through the Deploying Measurement Studio Applications and Measurement Studio Merge Modules and Deployment Files help topics found in the NI Measurement Studio Help.

Also as Kristen mentioned, I tested deploying a 8.1.2 application as well as an 8.5 application via ClickOnce and only the 8.5 application succeeded. Both applications were built in VS 2005. I can't explain why the 8.5 application worked because we haven't done anything at all with Measurement Studio related to ClickOnce between those versions.  So again, you see unexpected behavior since we don't state we support ClickOnce. 

So my final suggestion is to either use merge modules (i.e. build a VS installer that includes the necessary NI merge modules) or use XCOPY to get your application to those target machines. These are the scenarios we tested and state that work correctly.

I would suggest however that you submit a product suggestion indicating you wish to see full ClickOnce deployment.

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 5 of 5
(10,321 Views)