James Avery - problem on your treeview article?
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngwebcontrols' list.


Greg Quinn
MessageHey James,

I went through your article on the treeview control, very well explained and
a great article.

Only problem is, when I got to the second part of your article, when you set
the treenodesrc to "yourpage.xml" it gives me the following error...

There is invalid data at the root level. Line 1, position 1.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Xml.XmlException: There is invalid data at the
root level. Line 1, position 1.

The .xml file is in the same folder as my .aspx file and it is running off
my PC. Funny enough, no matter what .xml filename you put in the
treenodesrc, I still get this same error. I copied and pasted your code
exactyl from the article as well....

Greg
Reply to this message...
 
    
James Avery
Can you post your code? Do you use any authentication on your site?

-----Original Message-----
From: Greg Quinn [mailto:Click here to reveal e-mail address]
Sent: Monday, May 27, 2002 1:46 PM
To: aspngwebcontrols
Subject: [aspngwebcontrols] James Avery - problem on your treeview
article?

Hey James,

I went through your article on the treeview control, very well explained
and a great article.

Only problem is, when I got to the second part of your article, when you
set the treenodesrc to "yourpage.xml" it gives me the following error...

There is invalid data at the root level. Line 1, position 1.

Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Xml.XmlException: There is invalid data at the
root level. Line 1, position 1.

The .xml file is in the same folder as my .aspx file and it is running
off my PC. Funny enough, no matter what .xml filename you put in the
treenodesrc, I still get this same error. I copied and pasted your code
exactyl from the article as well....

Greg

| [aspngwebcontrols] member Click here to reveal e-mail address = YOUR ID |
http://www.asplists.com/asplists/aspngwebcontrols.asp = JOIN/QUIT
Reply to this message...
 
    
Pierre Thomasius
MessageYou will also get this error if you have "Seti at home" running on
the machine, so if you developing at home make sure to turn it off.
-----Original Message-----
From: James Avery [mailto:Click here to reveal e-mail address]
Sent: 27 May 2002 18:21
To: aspngwebcontrols
Subject: [aspngwebcontrols] RE: James Avery - problem on your treeview
article?

Can you post your code? Do you use any authentication on your site?
-----Original Message-----
From: Greg Quinn [mailto:Click here to reveal e-mail address]
Sent: Monday, May 27, 2002 1:46 PM
To: aspngwebcontrols
Subject: [aspngwebcontrols] James Avery - problem on your treeview
article?

Hey James,

I went through your article on the treeview control, very well explained
and a great article.

Only problem is, when I got to the second part of your article, when you
set the treenodesrc to "yourpage.xml" it gives me the following error...

There is invalid data at the root level. Line 1, position 1.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Xml.XmlException: There is invalid data at the
root level. Line 1, position 1.

The .xml file is in the same folder as my .aspx file and it is running
off my PC. Funny enough, no matter what .xml filename you put in the
treenodesrc, I still get this same error. I copied and pasted your code
exactyl from the article as well....

Greg

| [aspngwebcontrols] member Click here to reveal e-mail address = YOUR ID |
http://www.asplists.com/asplists/aspngwebcontrols.asp = JOIN/QUIT
| [aspngwebcontrols] member Click here to reveal e-mail address = YOUR ID |
http://www.asplists.com/asplists/aspngwebcontrols.asp = JOIN/QUIT
Reply to this message...
 
 
System.Xml.XmlException




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com