Pre loader

SetRuntimeLicenseKey

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

with Version 3.61.0.7847 I can set Runtime license without problem
with v4.0.30319 the message “Der Typeninitialisierer für “” hat eine Ausnahme verursacht.” appear

Has anybody a solution?

  • You must to post comments
0
0

Hi Frank,

If you are using v4.0.0 of sciChart, I would recommend updating.

v4.0.1 fixed several issues with licensing and v4.0.2 fixes several crash and dependency issues with SciChart 3D.

Let me know if this helps,

Best regards,
Andrew

  • You must to post comments
0
0

Hi Andrew,

I deinstalled V4.0.0 as recommended. Now I have v4.0.2.8045 getting by NuGet.
The license problem is the same.

  • Andrew Burnett-Thompson
    Hi Frank, Can you send us a Visual Studio Solution which reproduces the problem to support @ SciChart.com and we will investigate
  • mwidger
    Hi Andrew, Is there any progress on fixing this as I to have the same problem as Frank. I have tried all the v4 releases (0.1, 0.2 and 0.3), but still have the same issue. When I enter the SciChartSurface.SetRuntimeLicenseKey(); command ready to paste in the runtime license string, I receive an intellisense error that the displays. Invalid Token ‘(‘ in class, struct or interface member declaration. I am trying to add this to my App.xaml.cs file as per the recommendation on the website. A speedy resolution is required as we are looking to deploy our app within the next few weeks. If this does not work, is it possible to run v3.x with a license for v4? Thanks,
  • Andrew Burnett-Thompson
    There is zero progress, as no one has given us code or steps to reproduce! As soon as someone does this, we will investigate.
  • You must to post comments
0
0

yesterday morning I send two Versions to [email protected]; one works, one not to support and got the ticket PM-778-60810.
The main differenz is that in one case I made a separate template and so I have “b:BaseApplication” instead of “Application” in the Application.xaml.
With v3.6 the procedure works, with v4.0.2 not

  • Andrew Burnett-Thompson
    Hi Frank, I replied yesterday with “Unfortunately both your attachments say ‘Quaranteened attachment’. Can you upload to dropbox or similar and send a link? ” Please can you check your spam folder for our emails?
  • You must to post comments
0
0
  • Andrew Burnett-Thompson
    Hi Frank. Thank you, I’m investigating now. First issue I found is your project has an error in it. Open the project properties, you will see “An error occurred trying to load the application definition file for this project. The file ‘C:\Users\Andrew\Downloads\AVSCI_Chart_not ok\AVSCI_Chart\VB\AVSCI_Chart\AVSCI_Chart\Application.xaml’ could not be parsed. Please edit the file in the XAML editor to fix the error. Could not find the expected root element “Application” in the application definition file.”
  • Andrew Burnett-Thompson
    I’m not a VB.NET programmer so I can’t really tell how to fix this, but if you make the compile errors go away (some problem with mismatch of BaseApplication class name and Application) it might work.
  • Frank Resch
    Hi Andrew In Application.xaml first line just change from <Application x:Class="Application" to <b:BaseApplication x:Class="Application" then the last line automatically changed from to After this the code compiled without error, but when I start the Application the License Error appeard.
  • You must to post comments
0
0

Andrew, Frank,

Not sure if this will be applicable to the problems that Frank is experiencing, but I managed to solve my issue with the 4.0.3 install.

In my case, I rolled back Windows to the Restore Point prior to installing v4.0.1 and then just installed 4.0.3 and tried again.

This time everything worked, so I’m now up and running.

  • You must to post comments
0
0

Hi Andrew,

Now it works!

The reason of all trouble was the function “MyResolveEventHandler”
We need this function with separate code in internal Company dlls and it seems that SciChart also work with this function.
I deactivated our internal function and now it works.

from MSDN:
“Beginning with the .NET Framework 4, the System.ResolveEventHandler event is raised for all assemblies, including resource assemblies.In earlier versions, the event was not raised for resource assemblies.If the operating system is localized, the handler might be called multiple times: once for each culture in the fallback chain.”

  • Andrew Burnett-Thompson
    Ah-hah! So that was the problem. I wasn’t aware you had used it. I just knew that the underlying licensing mechanism works (not problematic) so there must be something wrong. I’m really glad you found the solution and I hope the issue is now resolved for you
  • You must to post comments
Showing 6 results
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies