iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi ,
We are getting this below error message for Combo loading. This issue will be not be always we are getting. Some edge case it is throwing this error. I have given stackTrace of this error.
Please suggest us any fix or what could be the cause for this error.
at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String arg) at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace() at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.XmlTextReaderImpl.Read() 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 ISNet.WebUI.ISNetControl.LoadPostData(String postDataKey, NameValueCollection postCollection) at ISNet.WebUI.WebCombo.WebCombo.LoadPostData(String postDataKey, NameValueCollection values) at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Hello,
I couldn't replicate your issue on my end. It would be difficult to trace the issue based on your provided error.
Could you send me a simple working sample that replicates your issue?
Thank you.
Hi Lie,
We are also trying to reproduce it in our local environment.
This issue is happening on our production environment. We have load balancer environment in our production servers. The same user we are trying serach in combo, it's working fine. End user are facing the following issues.
1).Data at the root level is invalid. Line 1, position 3621.
2)'/' is an unexpected token. The expected token is '='. Line 1, position 981.
3)'LastName' is an unexpected token. Expecting white space. Line 1, position 2067.
StackTrace for this error is :
Please suggest us what could be the cause for the XML load error (LoadPostData()).
Also we have checked this http://forums.asp.net/t/985790.aspx blog.
In that they suggests to try XML.Load() instead of XML.LoadXML() . Is there any patch we need to put for webcombo to fix this issue.
I'm sorry but I couldn't trace the error based on your given StackTrace error. What I need is the simple sample that replicates your issue, so that our development team can contribute to help you with.
Does your project work in your development environment?
Is there any possibility for me to perform Remote Desktop connection into your PC, so that I could directly investigate your project and find any solution?
Regards,-Martin-
Hi Martin,
Recap:
we think the problem on Viewstate. as the page works for some machines on some server.especially it is failing on webgarden. and also in the eventviewr it logging the error as "form authentication failed error in webresource.axd" so overcome this issue we are storing the viewstate in the database.
after to store the viewstate in database we are getting these below errors.
Note: in the same page we are using 3 webcombos,based on a drop doen valuse we are hiding the other 2 webcombos.
Data at the root level is invalid. Line 10, position 1.'POST' is an unexpected token. Expecting white space. Line 1, position 975.Data at the root level is invalid. Line 10, position 1.Unexpected end of file has occurred. The following elements are not closed: AttrKey, ISXMLMapping, CompressedXml. Line 4, position 80.The 'NodeValue' start tag on line 3 does not match the end tag of 'NodeVPOST'. Line 3, position 30.Unexpected end of file has occurred. The following elements are not closed: AttrKey, ISXMLMapping, CompressedXml. Line 4, position 80.
Please let us know,what could solve this issue. i have attached the properties of 3 webcombo also.
Are you running WebCombo under WebGarden environment?
I have discussed with the developer team about your issue. They suggest you to set ViewStateStorage to None, but there are few things that need some attentions as well.
You might want to refer to our WebUI Framework Documentation on ViewStateStorage usage. It is located in Start Menu >> All Programs >> Intersoft WebUI Studio 2010 R2 >> WebUI Studio for ASP.NET >> WebUI Framework 3 >> WebUI.NET Framework 3 Documentation (Visual Studio 2008).
Open the documentation and go to About WebUI Framework 2007 R2 >> New Features in 2007 R2 >> Best practices and common scenarios for ViewStateStorage™ usage.
Again, it is a little bit difficult for me to trace the error since I don't have the sample that can replicate your issue.
Hope this helps.
Yes i am running the webcombo on webgarden environment.
and it is giving error mostly on IE6 browser. In IE 7.0 we did not get this error.
do i need to do some extra settings for IE6.
Thanks.
I'm not sure if there is a limitation in IE6 browser.
I suggest you to watch the post data that is being sent to the server from both IE6 and IE7, and then compare the differences.
The error might occur in your own implementation.
<ISWebGrid:WebGrid ID="grdBlocks" runat="server" EnableViewState="False" Width="1240px" Height="500px" UseDefaultStyle="True" AllowAutoDataCaching="False"> <RootTable> <Columns /> </RootTable> <FlyPostBackSettings PostControlState="true" PostHiddenFields="true" PostViewState="true" /> <LayoutSettings AllowContextMenu="False" CellClickAction="CellSelect" AllowSorting="No" AlwaysShowHelpButton="False" RowHeaders="No" AutoHeight="false" ShowRefreshButton="False" TreeLines="true" AllowColumnFreezing="Yes" InProgressUIBehavior="ChangeCursorToHourGlass" HideColumnsWhenGrouped="Default" AllowFilter="Default" FilterBarVisible="False" AllowExport="Yes"> <FrameStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px" Height="500px"/> <HeaderStyle CssClass="ISGridHeaderStyle" Height="75px" /> <AlternatingRowStyle CssClass="ISGridAlternatingItemStyle" /> <RowStyle CssClass="ISGridItemStyle" /> <StatusBarStyle CssClass="ISGridHeaderStyle" /> <ButtonStyle CssClass="ISButtonStyleInvisibleButton" /> <SelectedRowStyle BackColor="Wheat" ForeColor="Maroon" /> <FreezePaneSettings AbsoluteScrolling="True" ActiveFrozenColumns="1" MaxFrozenColumns="1" /> <ClientSideEvents OnCellClick="grdBlocks_DoCellClick" OnUnhandledError="GridUnhandledError" OnAfterInitialize="grdBlocks_AfterInitialize" /> </LayoutSettings> </ISWebGrid:WebGrid>
I am getting this same error when trying to export a webgrid that has hierarchical data. The html for the grid is shown above. The error is "Data at the root level is invalid. Line 2, position 1."
All the other grids in our app export just fine, just this one has the issue. Is it not possible to export a WebGrid which has self-referencing hierarchical data?
Hi Michael,
I tried to replicate your issue here using the settings that you mentioned in your snippet code above. When I tried to export, I export the root table successfully. You can also tried to put this setting in our sample that packed in our installer about Self Referencing WebGrid. It also export the data perfectly. Is there any working sample that can replicate this issue in our local end? I also browse many possibilities that make this issue occurs, it seems there are not well formed tag inside your XML file. You should also check your web.config file regarding this matter. Look forward to hear any feedback from you so I can help you further.
Regards,Bernard
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname