Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Unlicensed Control Exceptions

I have a project using Measurement Studio 7 UI controls in Visual Studio 2005 (with the patch) that worked when I first created it.  I recently tried to make some changes to it, but I now receive unlicensed control exceptions.  The .licx file is properly formatted.  The only difference, as far as I know, is that I installed newer versions of DAQmx and VISA.  I tried repairing and reinstalling Measurement Studio with and without the patch, but I always get the same exception.  Oddly, it seems as though uninstalling Measurement Studio does not actually uninstall the patch, because when I try to reinstall the patch the installer says something like "No actions will be taken," and when I reinstalled Measurement Studio without the patch Visual Studio continued to automatically generate the .licx file.
0 Kudos
Message 1 of 5
(4,151 Views)
Hi SomeGuy,

I think this issue is probably related to the shared assembly that both Measurement Studio and DAQmx use and the patch updates (NationalInstruments.common.dll). In order to assist you further, I am going to attempt to reproduce this situation but I need to know the following information:
  1. Which versions of DAQmx and VISA were you originally using?
  2. Which versions of DAQmx and VISA did you upgrade to?
  3. What was the exact order of installation of Measurement Studio, the drivers, and the patch?
Regards,
Message 2 of 5
(4,134 Views)
Also, when you uninstalled the patch, did you follow the directions in the readme?

Message 3 of 5
(4,131 Views)
James,
 
Unfortunately, I don't remember what versions of DAQmx and VISA I was using.  I got so frustrated that I simply uninstalled all of my NI software and reinstalled only the driver versions that came with Measurement Studio (followed by the patch).  That of course fixed the problem.  I think that I can get by with those drivers for everything I want to do, so my problem is effectively resolved as far as development goes.
 
I do have a possibly related problem with running my application though.  I built a Visual Studio setup project and installed it on a seperate computer, but the first call to CreateAIVoltageChannel throws a BadImageFormatException.  That computer had the latest versions of DAQmx and VISA installed, so I tried downgrading them to the versions from the Measurement Studio CD, but that didn't help.  I think that the uninstallations of DAQmx and VISA left some components behind.  Are there known backward compatibility issues with later versions of DAQmx or VISA?  I successfully ran my original application (before I started having license issues with Measurement Studio, though with somewhat newer versions of the drivers than those the Measurement Studio CD) on the same computer with the same versions of DAQmx and VISA though.
 
P.S.  After downgrading the target machine didn't work, I tried uninstalling all of the NI software on it and starting fresh, but one of the uninstallations seemed to wreck Windows to the point that it wouldn't even boot in safe mode (not a big deal, just a pain).
0 Kudos
Message 4 of 5
(4,120 Views)

Hi SomeGuy,

Just so you know, we started fully supporting Visual Studio 2005 with Measurement Studio 8.0.1. When using Measurement Studio 7.x, you are using our .NET 1.1 assemblies in Visual Studio 2005 in which very little testing was done (and we have not done any testing since because we came out with a compatible version for Visual Studio 2005).  That patch is several years old and we haven't updated it since so if at all possible, I would suggest trying to upgrade to the latest version for Measurement Studio so you don't run into any licensing problems and you receive full integration into Visual Studio 2005.

We did see some licensing issues with Visual Studio 2003 and installing later versions of DAQ and VISA and these were fixed in the latest release of the driver CD (you could also download the latest drivers off our website).  This was the case because all of our versions of Measurement Studio 7.0 and greater support Visual Studio .NET 2003.

You can download an evaluation version of Measurement Studio here so you can try it out in Visual Studio 2005.

Best Regards,

Jonathan N.
National Instruments
Message 5 of 5
(4,104 Views)