.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 17th, 2003, 12:48 PM
JGF JGF is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 3 JGF User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
TreeView: TreeNodeSrc Bogus XML Parsing message

I went to http://msdn.microsoft.com/workshop/webcontrols/webcontrols_entry.asp and<br>downloaded some Microsoft Web Controls.<br><br>I created a sample folder in IIS and moved Microsoft.Web.UI.WebControls.dll<br>to bin directory in this folder.<br><br>Subsequently, I've created another Web Share folder, created a new bin<br>folder and recopied the aforementioned DLL to folder.<br><br>However, when I try and use of the TreeView Control in this new folder I get<br>problems whenever I try and use the TreeNodeSrc attribute to reference an<br>XML source file. I get this bogus XML parsing error: The error message is at<br>end of this document. I have attached a sample aspx page and xml.<br><br>If I move the aspx file to the sample folder everything works fine.It seems<br>like the DLL has got a hard coded reference to the sample folder bin<br>directory and is not using the local copy.<br><br>Is there something I can do when I supply the Register Page directive to fix<br>this? Or is there a more elegant solution?<br><br>Thanks in advance for your advice:<br>Jeremy_G_Flowers@yahoo.co.uk<br>================================================== ==========================<br><br>There is invalid data at the root level. Line 1, position 1.<br>Description: An unhandled exception occurred during the execution of the<br>current web request. Please review the stack trace for more information<br>about the error and where it originated in the code.<br><br>Exception Details: System.Xml.XmlException: There is invalid data at the<br>root level. Line 1, position 1.<br><br>Source Error:<br><br>An unhandled exception was generated during the execution of the current web<br>request. Information regarding the origin and location of the exception can<br>be identified using the exception stack trace below.<br><br>Stack Trace:<br><br>[XmlException: There is invalid data at the root level. Line 1, position 1.]<br> System.Xml.XmlTextReader.ParseRoot() +295<br> System.Xml.XmlTextReader.Read() +127<br> Microsoft.Web.UI.WebControls.TreeView.ReadXmlSrc(S tring TreeNodeSrc,<br>String TreeNodeXsltSrc, String strOuter) +127<br> Microsoft.Web.UI.WebControls.TreeView.ReadTreeNode XmlSrc() +70<br> Microsoft.Web.UI.WebControls.TreeView.OnInit(Event Args e) +90<br> System.Web.UI.Control.InitRecursive(Control namingContainer) +234<br> System.Web.UI.Control.InitRecursive(Control namingContainer) +178<br> System.Web.UI.Control.InitRecursive(Control namingContainer) +178<br> System.Web.UI.Page.ProcessRequestMain() +171

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > TreeView: TreeNodeSrc Bogus XML Parsing message


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT