10-08-2013 07:43 AM
Hi
I have developed a WPF application using Measurement studio 2013 Pro and just switched from framework 4.5 to 4.0. I followed the steps in following document:
In step 6 it states that I should update the license file manually. On the other hand this document states that I can use the integrated tools to update the file:
http://zone.ni.com/reference/en-XX/help/372636F-01/mstudiowebhelp/html/licensingnetwithoutintegratio...
Anyway I tried to perform the update using the Integrated tools. I followed the steps in this document:
http://zone.ni.com/reference/en-XX/help/372636F-01/mstudiowebhelp/html/licensingnetwithintegration/
The project compiles but I get the following runtime error:
A first chance exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll
Additional information: 'The invocation of the constructor on type 'NationalInstruments.Controls.PowerButton' that matches the specified binding constraints threw an exception.' Line number '92' and line position '22'.
An unhandled exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll
Additional information: 'The invocation of the constructor on type 'NationalInstruments.Controls.PowerButton' that matches the specified binding constraints threw an exception.' Line number '92' and line position '22'.
Unhandled Exception: 'NoLoadTest_Test.exe': Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\diasymreader.dll', Cannot find or open the PDB file.
System.Windows.Markup.XamlParseException: 'The invocation of the constructor on type 'NationalInstruments.Controls.PowerButton' that matches the specified binding constraints threw an exception.' Line number '92' and line position '22'. ---> System.ComponentModel.LicenseException: NationalInstruments.Controls.Internal.WpfStandardLicenser is unlicensed.
at NationalInstruments.Restricted.LicenseBase.ShowUnLicensedBehavior(Type type, Object instance)
at NationalInstruments.Restricted.LicenseBase.a(Type A_0, Object A_1, String A_2)
at NationalInstruments.Restricted.LicenseBase.a(Type A_0, Object A_1)
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.Validate(Type type, Object instance)
at NationalInstruments.Controls.Internal.WpfStandardLicenser..ctor(Type licensedType)
The licenses file is empty after I have selected Refresh project license file.
Can you please help me?
Kind regards
/Axel
Solved! Go to Solution.
10-08-2013 08:52 PM
10-09-2013 02:35 AM
OK thanks
/Axel