Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Why Do I Get an Unlicensed Assemblies Error Message at Run Time When Using Measurement Studio .NET Controls in a Visual C# Project?

Hi all,

I was using NI Measurement Studio v8.6.1 under Visual Studio 2008 and recently I have migrated to Visual Studio 2010.

Now, I am using NI MStudio 8.6.1 and Visual Studio 2010. In visual studio 2010 it does not appear in menu bar the National Instruments menu but it is normal as VS2010 has been installed later than NI MStudio 8.6.1.

 

My problem is the following:

I can compile my C# solution without problems but in runtime I get an unlicensed assembly error message related to PropertyEditorSource when trying to instantiate this:

 

new PropertyEditorSource(object, property)

 

I have opened VS2008 as in National instruments menu I have seen that there is an option related to licenses so I select it and a window is opened and it shows all the licenses installed. In this window appears all the assemblies as licensed so.... I don't understand why my project in VS2010 is raising an unlicensed error message in runtime.

 

Can anyone help me to sovle this?

 

Thanks in advance.

 

PD.: I have read the following:

http://digital.ni.com/public.nsf/allkb/53028D50C975D67286256DEF006FDB27

 

but this is for C++ and I don't know if it is also applicable for C#. At the end of this it says that some steps are necessary to be done in the Project Properties to license the Measurement Studio .NET assemblies in my application, Is it necessary to be done for C# projects?

 

Thanks in advance.

 

0 Kudos
Message 1 of 6
(5,906 Views)

Sorry, instead of

 

new PropertyEditorSource(object, property)

 

is

 

new PropertyEditor();

 

Also, I have downloaded the free evaluation version (Measurement Studio 2012) and I have installed, and the same problem appears.

So it is happening to me when using the purchased version (Measurement Studio v8.6.1) and the free evaluation version (2012)....

 

I highly appreciate if someone can help me.

 

PD.: I have done a reply and not edit the previous post because I don't know how to edit it, sorry.

 

 

0 Kudos
Message 2 of 6
(5,903 Views)

Scenarios where it is happenning:

 

1) Measurement Studio 8.6.1 purchased with Visual Studio 2010 professional (not express) and Windows 7.

2) Measurement Studio 2012 free evaluation version with Visual Studio 2008 Express and Windows XP: In this case, I have installed Visual Studio 2008 integration feature (neither 2005 nor 2010 Visual Studio integration) from the Measurement Studio installer.

 

Please, could someone provide solutions for both scenarios? Thanks a lot.

0 Kudos
Message 3 of 6
(5,897 Views)

I have similar issues. Have spend hours on the phone. Shame as we have used Measurement studio in our products for nearly 15 years and never had problems like this with any other versions - .NET, C#, VS2010, MS2010 = runtime licensing errors.

0 Kudos
Message 4 of 6
(5,888 Views)

Hi,

 

I have solved this. The cause is that you should drag and drop to design view in Visual Studio, the NI components you want to use in order licenses.licx file be updated correctly with a line corresponding to the component you just drag & drop. Once added this line, you can remove the component from the design view and the unlicensed message does not appear any more. This problem is common when you programmatically instantiate a NI component that you have not dragged and dropped to the design view.

 

I hope it helps you.

 

0 Kudos
Message 5 of 6
(5,882 Views)

I tried this but it didn't work.

 

I was using MSVS 2005 and an earlier Measurement Studio on a Windows XP box.

 

My new machine runs Windows7 (32-bit) and has MSVS 2010.  I purchased and activated Measurement Studio 2012.

 

When I load my projects into MSVS 2010 on the new box, I get the unlicensed error.  HELP!

 

0 Kudos
Message 6 of 6
(5,739 Views)