08-13-2023 02:08 AM
I'm trying to upgarde my app to .Net 6 using NI dlls for .Net Framework, but getting an error: 'TypeLoadException: Could not load type 'System.Web.HttpContext' from assembly 'System.Web, Version=4.0.0.0'.
This exception was originally thrown at this call stack:
NationalInstruments.Restricted.LicenseProviderBase.GetLicense(System.ComponentModel.LicenseContext, System.Type, object, bool)
System.ComponentModel.LicenseManager.ValidateInternalRecursive(System.ComponentModel.LicenseContext, System.Type, object, bool, out System.ComponentModel.License, out string)
System.ComponentModel.LicenseManager.Validate(System.Type, object)
NationalInstruments.Controls.Graph.LicenseCheck()
NationalInstruments.Controls.Primitives.GraphBase.InitializeInstance()
NationalInstruments.Controls.Primitives.GraphBase.GraphBase(NationalInstruments.Controls.Primitives.DataProcessorBase)
NationalInstruments.Controls.Primitives.LayeredGraph.LayeredGraph(NationalInstruments.Controls.Primitives.DataProcessorBase)
NationalInstruments.Controls.Graph.Graph(NationalInstruments.Controls.Primitives.DataProcessorBase).
Example project is attached. (For VS 2022)
Is it possible to solve this exception, or there is no option to use the graph if I want to upgrade my application to .Net 6?
08-29-2023 02:15 AM
NI Measurement Studio does only support the .Net Framework, not .Net Core. NI has not yet stated officially if they have any plans to update Measurement Studio to support .Net Core. The current feeling is that they likely won't.