06-27-2012 10:40 AM
My development computer is a Windows XP SP3 system with Visual Studio 2010. When I attempt to compile an application with only a Measurement Studio control (in this case an LED control) onto a simple form (created through the Visual Studio CLR form application wizard) I get an executable that will run just fine on any Windows XP machine. But when attempting to run on a Windows 7 machine (x86 and 64) I'm getting the exception:
Application: Chirp.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.IO.FileNotFoundException Stack: at NationalInstruments.Restricted.LicenseBase.RunTimeCheck(System.ComponentModel.LicenseContext, System.Type, System.Object) at NationalInstruments.Restricted.LicenseProviderBase.GetLicense(System.ComponentModel.LicenseContext, System.Type, System.Object, Boolean) at System.ComponentModel.LicenseManager.ValidateInternalRecursive(System.ComponentModel.LicenseContext, System.Type, System.Object, Boolean, System.ComponentModel.License ByRef, System.String ByRef) at System.ComponentModel.LicenseManager.Validate(System.Type, System.Object) at NationalInstruments.UI.WindowsForms.ScatterGraph..ctor() at Chirp.ChirpMain.InitializeComponent() at Chirp.ChirpMain..ctor() at <Module>.main(System.String[])
It appears to be a licensing issue and I have already placed
lc.exe /target:"$(TargetFileName)" /complist:"$(ProjectDir)licenses.licx"
in my Pre-Build events and
$(ProjectDir)$(TargetFileName).licenses
In my "Embed Managed Resource File" property.
Development System:
Windows XP SP3 Core Duo 2
.NET 4
Visual Studio 2010
Mesurement Studio 9 with latest updates.
06-27-2012 10:52 AM
I'm sorry in this case I was attempting to use a ScatterGraph.
06-28-2012 09:30 AM
Hi Mry,
Ensure that you follow the directions in these 2 KBs. Including the merge module on the Windows 7 install and running the installation as administrator may be a good fix for you problem.
Distributing Measurement Studio Applications in Microsoft Visual Studio 2003/2005/2008/2010
Why Did My Measurement Studio Distribution Not Fully Install In Windows 7?