There is an error in XML document when running Strategy Monitor
Author: eleeo234
Creation Date: 10/21/2019 3:13 AM
profile picture

eleeo234

#1
I have a very basic strategy I was using in strategy monitor, however after the recent update to WL, I'm not able to get back into strategy monitor. Not sure if it had to do with the new update or something else. I have attached the error. I'm not familiar with coding, so I'm hoping this can be an easy fix. Thanks!
profile picture

eleeo234

#2
Details of error are attached in pdf.

************** Exception Text **************
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.XmlReader.MoveToContent()
at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderList1.Read12_ArrayOfStrategyCe
nterItem()
--- 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.c()
at WealthLabPro.MainForm.OpenStrategyCenter()
at WealthLabPro.MainForm.bt(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.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.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr
lparam)
profile picture

Eugene

#3
Nothing new under the Sun, with your question you are in good company :)

https://www.wealth-lab.com/Forum/Posts/Strategy-Monitor-error-quot-There-is-an-error-in-XML-document-quot-31258
https://www.wealth-lab.com/Forum/Posts/Strategy-Monitor-Error-in-XML-document-33044
https://www.wealth-lab.com/Forum/Posts/Error-loading-provider-There-is-an-error-in-XML-document-33660
https://www.wealth-lab.com/Forum/Posts/Strategy-Monitor-Exception-error-in-XML-document-38980

Please refer to our Knowledge Base (Wiki) > Strategy Monitor doesn't work, notice section with example of the "Root element is missing" error, and follow the procedure to fix it for good.

Also, PDF are suboptimal for posting screenshots and/or error messages. If it's a modal Windows error dialog, you could strike Ctrl-C to copy the underlying error message and Ctrl-V to paste it when replying (a standard Windows shortcut). Please only attach text as text (TXT) and images as images (PNG preferred, MS Paint which is built in any Windows will do it). Simple? You bet!
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).