XML error when posting back from menu item:

This post has 19 replies

Not Ranked
Posts: 1
charnchai Posted: Sun Oct 14, 2007 @ 2:01 PM
I have same problem for TreeView control.
However, I can fix System.Xml.XmlException during postback by set viewstate to be false for PlaceHolder control which my treeview reside in this placeholder.

Hope, this help.
Not Ranked
Posts: 2
rowrollin Posted: Sun Mar 29, 2009 @ 10:29 PM
This is an answer of the problem what I solved.

<CA:ComboBox id="cbDropDown" runat="server" Width="150" EnableViewState="false" >


Add EnableViewState="false" as attribute in your ComponentArt Tag.


I hope to help you.


<a href='http://sini.pe.kr' target='_blank'>My Blog</a>
Not Ranked
Posts: 9
minhkhai Posted: Fri Sep 25, 2009 @ 10:55 AM
I remember I submitted it some where before but never got an answers yet. Some people guess it is because the XML is improper formatted or having some none printable character. But I want to make it clear that it is not. While I am binding all my controls using dataset, I still get the same error every day. It is hard to catch since I couldn't reproduct it on my developing machine. I tried to monitor it by logging error message and client ip address associate with that error. I notice that it is intermittent. And it never happens when first load. It always happens after post back. I saw this problem for long and it is still happens with the latest version, 2009.2.1509. Please fix this as when it happen the browser frozen and it can not be closed. User have to kill it using window task manager. My guess is there's some problem with ComponentArt ViewState Management. for example it happens twice today with two diffrent customers. Error Message:Error loading client properties: System.Xml.XmlException: Unexpected end of file has occurred. The following elements are not closed: c, r, c, r. Line 1, position 667. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String arg) at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String arg) at System.Xml.XmlTextReaderImpl.ThrowUnclosedElements() at System.Xml.XmlTextReaderImpl.ParseElementContent() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace) at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.LoadXml(String xml) at ComponentArt.Web.UI.BaseNavigator.LoadClientProperties(String sData) Stack Trace:System.Exception: Error loading client properties: System.Xml.XmlException: Unexpected end of file has occurred. The following elements are not closed: c, r, c, r. Line 1, position 667. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String arg) at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String arg) at System.Xml.XmlTextReaderImpl.ThrowUnclosedElements() at System.Xml.XmlTextReaderImpl.ParseElementContent() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace) at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.LoadXml(String xml) at ComponentArt.Web.UI.BaseNavigator.LoadClientProperties(String sData) at ComponentArt.Web.UI.BaseNavigator.LoadClientProperties(String sData) at ComponentArt.Web.UI.TreeView.LoadViewState(Object savedState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Page.LoadAllState() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Not Ranked
Posts: 5
factoryinsight Posted: Sun Dec 6, 2009 @ 5:15 PM
I have had 160 errors of this type on production since June or so.  It sseems intermittent.  I cannot enable viewstate to false as my grids use client-side sorting and selection and this causes them to fail.  ONe hopes Component Art will take notice soon.  It seems that this problem has existed for almost 3 years with no resolution.

Top 500 Contributor
Posts: 20
dforney Posted: Thu May 20, 2010 @ 10:36 AM
Anyone know if this has been resolved yet? We're getting errors daily.  Is there any good way to catch these errors so I can do more with them?  Thanks!
Page 2 of 2 (20 items) < Previous 1 2