I created a simple .NET6 WPF application and added the SciChart assembly references. I call SciChartSurface.SetRuntimeLicenseKey(…) in App constructor and run the application. I get the following exception:
*System.TypeInitializationException: The type initializer for ‘njm’ threw an exception. Source=SciChart.Core
Inner Exception 1:
InvalidOperationException: babel m0 7238858: Method not found: ‘System.Reflection.Emit.AssemblyBuilder System.AppDomain.DefineDynamicAssembly(System.Reflection.AssemblyName, System.Reflection.Emit.AssemblyBuilderAccess)’.
Inner Exception 2:
MissingMethodException: Method not found: ‘System.Reflection.Emit.AssemblyBuilder System.AppDomain.DefineDynamicAssembly(System.Reflection.AssemblyName, System.Reflection.Emit.AssemblyBuilderAccess)’.*
Everything works well if I use SciChart in a .NET4.8 WPF application. How can I fix this? Thanks.
- Marius Cabas asked 10 months ago
- You must login to post comments
Hi Marius, are you trying this with SciChart WPF v7 or v6? Only version 7 is compatible with .NET Framework 6.
The entire demo app at github.com/abtsoftware/scichart.wpf.examples targets .NET 6, as well as simpler examples like the Licensing Test App.
Please confirm the above
Best regards,
Andrew
- Andrew Burnett-Thompson answered 9 months ago
- You must login to post comments
Please login first to submit.