Getting "No valid license available" with class library and WPF

Found a possible bug in LightningChart? Report it here.

Moderator: Queue Moderators

Post Reply
MickaelBNeron
Posts: 1
Joined: Fri Mar 03, 2023 10:02 am

Getting "No valid license available" with class library and WPF

Post by MickaelBNeron » Fri Mar 03, 2023 10:05 am

When using LightningGraph in Windows Applications, it works. When using it in a class library with WinForm, it works. When using it in a class library with WPF, I am seeing all black with a red message "No valid license available".

This is even though I am correctly calling LightningChart.SetDeploymentKey before using the graphs, and all graphs shown outside of the class library (directly in the main application) work fine. Any clue?

ArctionKestutis
Posts: 552
Joined: Mon Mar 14, 2016 9:22 am

Re: Getting "No valid license available" with class library and WPF

Post by ArctionKestutis » Tue Mar 07, 2023 11:45 am

This particular message may be shown, if LightningChart skipped license check for some reason. For example, it may happen if Chart is never attached to a loaded element tree and chart is not in Headless Mode.

PaulaHubbard
Posts: 1
Joined: Sat May 13, 2023 8:09 am

Re: Getting "No valid license available" with class library and WPF

Post by PaulaHubbard » Thu May 18, 2023 2:28 am

Hello ArcctionKestutis

Thank you for sharing this , but if it is the case that LightningChart skips the license check for unknown reasons , what is the best solution ?

ArctionKestutis
Posts: 552
Joined: Mon Mar 14, 2016 9:22 am

Re: Getting "No valid license available" with class library and WPF

Post by ArctionKestutis » Fri May 19, 2023 7:21 am

The best solution - contact Support by email and share your case.

Post Reply