Hi,
I have released a WPF application on .NET Framework 4.8 that uses the SciChart library.
Some users cannot start the program because when the license is checked they get an exception, this problem disappears if they launch the application with the “Run as administrator” option, but this is not acceptable for them.
I’d like to know if this is a know issue and how to resolve it.
Below the full exception and the system specs:
Frameworkversion: v4.0.30319
Beschreibung: Der Prozess wurde aufgrund einer unbehandelten Ausnahme beendet.
Ausnahmeinformationen: System.InvalidOperationException
bei Abt.Licensing.New.AbtLicensingNativeDIILoader.LoadDIIFromResource(System.Reflection.Assembly, System.String, System.String, Boolean)
Ausnahmeinformationen: System.InvalidOperationException
bei Abt.Licensing.New.AbtLicensingNativeDIILoader.LoadDIIFromResource(System.Reflection.Assembly, System.String, System.String, Boolean)
bei Abt.Licensing.New.AbtLicensingNativeDIILoader.InitNativeLibs(
bei Abt.Licensing.New.Credentials .. cctor(
Ausnahmeinformationen: System. TypelnitializationException
bei Abt.Licensing.New.Credentials.SetRuntimeLicenseKey(System.String)
Operating System Name: Microsoft Windows 11 Enterprise
Version: 10.0.22631 Build 22631
System Manufacturer: Dell Inc.
System Model: Latitude 5540
System Type: x64-based PC
Processor: 13th Gen Intel(R) Core(TM) i7-1365U, 1800 MHz, 10 cores
BIOS Version/Date: Dell Inc. 1.14.0, 12/06/2024
SMBIOS Version: 3.6
Embedded Controller Version: 1.19
BIOS Mode: UEFI
Platform Role: Mobile
Secure Boot State: On
- Alessio Diana asked 3 weeks ago
- You must login to post comments
Hello Alessio,
Thank you for reaching out.
The issue appears to be related to folder access, which could be caused by antivirus software or insufficient user permissions. This error occurs when SciChart attempts to write native DLL dependencies to the default path.
To address this, we recommend explicitly specifying a path for SciChart dependencies. You can achieve this by setting the NativeDllLoader.DependenciesPathRoot static property to a folder path where the user is guaranteed to have read and write access. This should be done before SciChart is initialized, such as in the Application constructor before any other calls:
public partial class App : Application
{
public App()
{
  // Specify path where SciChart will write out native DLL dependencies during startup
// Make sure that this path has write access!
// Must be called before SciChart is initialized
SciChart.Core.NativeDllLoader.DependenciesPathRoot = "[Your Path Here]";
 InitializeComponent();
  // TODO: Put your SciChart Runtime License Key here if needed
  // SciChartSurface.SetRuntimeLicenseKey(@"{YOUR SCICHART WPF v8 RUNTIME LICENSE KEY}");
}
}
Please try this approach and let us know if it resolves the issue.
Kind regards,
Lex,
SciChart Team
- Lex answered 3 weeks ago
- You must login to post comments
I asked the user to make the IT Admin unlock the folder for him and it worked, thank you!
- Alessio Diana answered 2 weeks ago
- You must login to post comments
Please login first to submit.