
May 17th, 2003, 12:48 PM
|
|
Registered User
|
|
Join Date: May 2003
Posts: 3
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
|