Strategy Monitor error: "There is an error in XML document"
Author: abate
Creation Date: 12/7/2010 1:38 PM
profile picture

abate

#1
When I tried to open strategy monitor or try to open 'Trading Workspace' I get the following error:
'There is an error in XML document (0,0)'. There is no error when I try to open the 'Market Data Workspace'. I uninstalled and reinstalled WL Pro and also restored Fidelity Data from my previous backup but nothing seems to work. Can you please tell me what I need to do. The Details of the error shows the following:
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.ThrowWithoutLineInfo(String res)
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.XmlSerializationReaderList1.Read12_ArrayOfStrategyCenterItem()
--- 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 WealthLabPro.StrategyCenterForm.d()
at WealthLabPro.StrategyCenterForm..ctor()
at dm.ah()
at dm.bq(Object A_0, EventArgs A_1)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
profile picture

Eugene

#2
QUOTE:
I uninstalled and reinstalled WL Pro and also restored Fidelity Data from my previous backup but nothing seems to work.

Uninstalling and reinstalling WLP is exactly the same as kicking tires when the car is out of gas. That is, a harmless but completely useless action. ;) (The Wiki FAQ - our official Knowledge Base - has been saying it for almost two years.)
QUOTE:
System.InvalidOperationException: There is an error in XML document (0, 0). ---> System.Xml.XmlException: Root element is missing.

Possible reason: abnormal program termination that corrupted the configuration file etc.

Solution: Strategy Monitor doesn't work. If you Google how to enable hidden file/folder visibility (config/data files are hidden), your Strategy Monitor will be up and running in two minutes.
profile picture

Eugene

#3
Note: no need to even close WLP, just close your Strategy Monitor before deleting the XML file as suggested in the linked KB article.
profile picture

abate

#4
Eugene,

Thanks!! That did it.

Abate