Posted 27 September 2017, 8:47 pm EST
We are seeing an odd issue with the C1Editor control when we are running our code under a Windows user account that contains a special character in the name (an apostrophe: ’ , tilde: ~, or pound sign #). When we try to load a form with a c1editor control on it under these conditions (the user with special chars in their windows username), the code throws an error in the Constructor portion of the code. We’ve been able to duplicate this multiple times on Windows 7, unsure if Windows 8 still exhibits the same issues.
The relevant portion of the stack trace from that error is as follows:
System.NullReferenceException: Object reference not set to an instance of an object.
at C1.Win.C1Editor.Internal.XmlValidator.CorrectCharset(XmlDocument xmlDoc, Boolean convertToUTF8, Encoding& encoding)
at C1.Win.C1Editor.Internal.XmlValidator.a(XmlDocument A_0, ConvertExtraWhitespacesMode A_1, Boolean A_2)
at C1.Win.C1Editor.Internal.XmlValidator.LoadXmlDocument(XmlDocument xmlDoc, String xml, Boolean autofix, Boolean useXhtmlDtd, ConvertExtraWhitespacesMode convertExtraWhitespacesMode, CustomValidateErrorDialog customDialog, Boolean removeEmptyInlineTags, Boolean strict)
at C1.Win.C1Editor.Internal.XmlValidator.LoadXmlDocument(XmlDocument xmlDoc, String xml, Boolean autofix, Boolean useXhtmlDtd, ConvertExtraWhitespacesMode convertExtraWhitespacesMode, CustomValidateErrorDialog customDialog)
at C1.Win.C1Editor.Internal.EditorXmlDocument.Load(String xml, Boolean autoFix, Boolean convertToUTF8, CustomValidateErrorDialog customDialog)
at C1.Win.C1Editor.C1Editor.LoadDocument(String xml, Uri uri, Boolean autoFix, CustomValidateErrorDialog customDialog, DocumentFormat format)
at C1.Win.C1Editor.C1Editor.InitDocument()
at C1.Win.C1Editor.C1Editor…ctor()
at TC.frmFUP.InitializeComponent()
at TC.frmMain…ctor()
In this case, we’re not even to the point of populating any information within the C1Editor, it’s merely the construction of that control that is throwing the error. Is there any workaround for this issue?