cosmin.rasina Posted October 30, 2013 Report Share Posted October 30, 2013 Hi guys, We develop an application that uses yours ChartFX.WPF charting component. We bought a developver licence for this. The problem that we have is that when running the application on other machines that don't have a licence installed the application crashes. I tried to add a licenses.licx file to our exe project as embbeded resources with the following content: ChartFX.WPF.Chart, ChartFX.WPF, Version=8.1.YYYY.ZZZZZ(our build number), Culture=neutral, PublicKeyToken=a1878e2052c08dce but not luck. The error that we receive is the following one: System.ComponentModel.LicenseException: Couldn't get Run Time license for 'ChartFX.WPF.Chart'at ChartFX.WPF.Internal.SfxLicenseProvider.a(LicenseContext A_0, Type A_1, Object A_2, Boolean A_3, LicenseProvider A_4)at ChartFX.WPF.Internal.RegistryLicenseProvider.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) Can you tell us what are we doing wrong ? Can you please provide us the steps for registering the licence in the application ? Thanks, Cosmin Quote Link to comment Share on other sites More sharing options...
AndreG Posted October 30, 2013 Report Share Posted October 30, 2013 For the license to be included you need to compile the code that instantiates the chart as an exe. If you are using the chart inside a dll, make sure you include a "dummy" chart in the exe. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.