Brozcat / audioswitch

Automatically exported from code.google.com/p/audioswitch
0 stars 0 forks source link

Unexpected error #66

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Happens every time I open the program. Worked fine until today, when it 
wouldn't work upon boot.

Log Entry: 5/28/2015 6:41:08 PM

System.InvalidOperationException: There is an error in XML document (0, 0). 
---> System.Xml.XmlException: Root element is missing.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlTextReader.Read()
   at System.Xml.XmlReader.MoveToContent()
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSettings.Read12_Settings()
   --- End of inner exception stack trace ---
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader)
   at AudioSwitch.Classes.Settings.Load()
   at AudioSwitch.Classes.Program.Main(String[] args)

Original issue reported on code.google.com by xxxlivel...@gmail.com on 28 May 2015 at 10:43

GoogleCodeExporter commented 8 years ago
Which version are you using? If not RC7 then uninstall your current version, 
delete the AudioSwitch installation folder and install the newest version. This 
error is caused by an empty Settings.xml file, which should be fixed in the RC7 
version and not happen again.

Original comment by tanelte...@gmail.com on 29 May 2015 at 5:55

GoogleCodeExporter commented 8 years ago
I'm currently on version 2.1 and it happened again.

System.InvalidOperationException: There is an error in XML document (0, 0). 
---> System.Xml.XmlException: Root element is missing.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlTextReader.Read()
   at System.Xml.XmlReader.MoveToContent()
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSettings.Read12_Settings()
   --- End of inner exception stack trace ---
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader)
   at AudioSwitch.Classes.Settings.Load()
   at AudioSwitch.Classes.Program.Main(String[] args)
-------------------------------

Original comment by xxxlivel...@gmail.com on 19 Jul 2015 at 3:50

GoogleCodeExporter commented 8 years ago
I released a 2.1.1 bugfix version, which now for every issue with loading 
settings file creates a new one with default settings, you can try that.

Original comment by tanelte...@gmail.com on 22 Jul 2015 at 8:00