FORUM › Forums › Software › CLS2SIM Software › CLS2Sim is unable to save settings
- This topic has 1 reply, 1 voice, and was last updated 10 months, 3 weeks ago by Gregd.
-
AuthorPosts
-
18/11/2023 at 07:32 #3630GregdParticipant
Windows 11 – up to date
I tried to reinstall to different folders, run as admin, but every time I launch it – I get errors like below.Any suggestions? SW Ver. 5.6.2
18.11.2023 at 01:27:47 Saving settings failed. 18.11.2023 at 01:27:47 System.InvalidOperationException: There was an error generating the XML document. ---> System.InvalidCastException: Specified cast is not valid. at System.Xml.Serialization.XmlSerializationPrimitiveWriter.Write_int(Object o) at System.Xml.Serialization.XmlSerializer.SerializePrimitive(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces) at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id) --- End of inner exception stack trace --- at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id) at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o) at CLS2Sim.Model.Settings.Setting.Serialize() at CLS2Sim.Model.Settings.SettingsFile.Save(Stream stream)
19/11/2023 at 17:47 #3631GregdParticipantFor all future strugglers:
If you get an exception on settings load, it’s likely you have com0com installed and virtual ports like CNCA0, CNCB0. Remove a pair of CNC class ports and leave only COM1-10 in the com0com configurator. The app tries to parse the serial ports list but the regex expression only works for the basic scenario, so it will fail.
If you get exceptions on settings save, set a value to the TCP server port, UDP server port. The form has no validation.
P.S. The yoke is good. The software does work but is far from being Swiss-made.
Cheers
-
AuthorPosts
- You must be logged in to reply to this topic.