I am following the instructions here: https://help.syncfusion.com/windowsforms/syntax-editor/syntax-highlighting#apply-custom-configuration-in-editcontrol
Here's my code:
private string editControlConfig = Path.GetDirectoryName(Application.ExecutablePath) + @"\..\..\config.xml";
EDITC_SVGSource.Configurator.Open(editControlConfig);
EDITC_SVGSource.ApplyConfiguration("xml");
EDITC_SVGSource.LoadFile(DLOG_OpenSVGFile.FileName);
When I run my application, I get the following error:
Exception thrown: 'System.InvalidCastException' in System.Private.CoreLib.dll
An exception of type 'System.InvalidCastException' occurred in System.Private.CoreLib.dll but was not handled in user code
Unable to cast object of type 'Syncfusion.Windows.Forms.Edit.Implementation.Config.ConfigLanguage' to type 'Syncfusion.Windows.Forms.Edit.Implementation.Config.ConfigLanguage[]'.
Here's a screenshot:
What am I doing wrong here? This is a C# solution targeting .NET 7.0, using Visual Studio 2022 with all the required Syncfusion assemblies installed.