01-28-2011 03:45 PM
Hi there,
I once downloaded a Measurement Studio evaluation copy to use for my VisualStudio 2008 project. After that, we got a license for NI Developer Suite which include Measurement Studio. However, when I tried to run/debug one of the old project in VS2008, it gave me a "LicenseException". I checked the NI License manager to make sure DevSuite 2009 Q4 installed with a disconnected license (never expire).
How do I get rid of this error? Please help!
FYI, I copy the exxception details below to assist troubleshooting.
=======================================
System.ComponentModel.LicenseException was unhandled
Message="NationalInstruments.UI.WindowsForms.Led evaluation period has expired."
Source="NationalInstruments.Common"
StackTrace:
at NationalInstruments.Restricted.EvalReleaseLicense.ShowEvalBehavior(Type type, Object instance, String licenseString)
at NationalInstruments.Restricted.EvalReleaseLicense.ComponentRunTimeCheck(Type type, Object instance, String licenseString)
at NationalInstruments.Restricted.LicenseBase.a(Type A_0, Object A_1, String A_2)
at NationalInstruments.Restricted.LicenseBase.RunTimeCheck(LicenseContext context, Type type, Object instance)
at NationalInstruments.Restricted.LicenseProviderBase.GetLicense(LicenseContext context, Type type, Object instance, Boolean allowExceptions)
at System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey)
at System.ComponentModel.LicenseManager.ValidateInternal(Type type, Object instance, Boolean allowExceptions, License& license)
at System.ComponentModel.LicenseManager.Validate(Type type, Object instance)
at NationalInstruments.UI.WindowsForms.Led..ctor()
at MKS.Online.MCBTest.MainForm.InitializeComponent() in F:\Users\HZhang\MCBTest\MainForm.cs:line 232
at MKS.Online.MCBTest.MainForm..ctor() in F:\Users\HZhang\MCBTest\MainForm.cs:line 116
at MKS.Online.MCBTest.MainForm.Main() in F:\Users\HZhang\MCBTest\MainForm.cs:line 986
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)
at System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()
at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext)
at System.Activator.CreateInstance(ActivationContext activationContext)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
01-31-2011 05:57 PM
Hi Shef,
It sounds like your Measurement Studio license file didn't update correctly when you installed the Developer Suite. You can manually update your licenses.licx file, in an effort to fix this issue. Try these steps (found in the Measurement Studio Documentation):
Hopefully this helps to resolve the issue!
Regards,
Stephanie R.
National Instruments
02-01-2011 11:10 AM
Thank you Stephanie for your reply. Unfortunately the documented steps did not resolve the problem. Later on I had to remove the evaluation version completely from Control Panel, and then re-installed from the installer from DevSuite. This finally got rid of the license exception. But your info still helped.
Further question: can I use the existing Measurement Studio (8.9.0) for new Visual Studio 2010? We should not have to upgrade Measurement Studio every time when we upgrade Visual Studio, right?
02-02-2011 10:45 AM
Hi Shef,
You can use Measurement Studio 2009 (8.9) with Visual Studio 2010; however, the Visual C++ libraries that shipped with MS2009 will not work with VS 2010. You can read more about that here. I cannot give you a definite answer on whether or not MS2009 will continue to offer full support for future versions of Visual Studio -- that depends on what changes and updates Microsoft opts to make to their software. With regards to compatibility between past versions of Visual Studio and Measurement Studio, you can read more here.
Also, the current version of Measurement Studio is 2010 (9.0). Just wanted to let you know!
Regards,
Stephanie R.
National Instruments