TreeNodeSrc
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngwebcontrols' list.


SNegussie@aol.com
I get "[XmlException: There is invalid data at the root level. Line 1,
position 1.]" when I set the TreeNodeSrc attribute of a treeview control to a
file that generates the XML needed to build the tree. Any ideas?
Reply to this message...
 
    
Chris Peet
Hi,

I am not sure that I have a full understanding of exactly what you are
doing, but I have seen the same error message. In my case, this happened
because Microsoft does not support the use of authentication and
authorization with the TreeView's XML and XS: files. In my experience, the
use of encryption can also screw things up. There are a few options for
dealing with this:

1. Allow anonymous access to the XML and XSL files (requires that you are
using NTFS).
2. Relocate the XML and XSL files to a directory that allows anonymous access.
3. Use a fully qualified file system path to specify the XML and XSL file
locations in the TreeView's properties.

I hope this helps.

Chris Peet
Senior Software Engineer
EdMicro Inc.

At 06:47 PM 6/29/2002 -0400, Click here to reveal e-mail address wrote:
[Original message clipped]

Reply to this message...
 
    
SNegussie@aol.com
I did all the things you suggested and the problem still persists. I'm at
loss of what else to do right now.
Reply to this message...
 
    
=?iso-8859-1?Q?Jonathan_Hjertstr=F6m?=
Hi,

I once got that error message when on my first line I had written "XML" in capital letters. Changing to lower case solved the problem.

This is my correct first line.

<?xml version="1.0" encoding="utf-8" ?>

Hope it helps.

/

**************************************************************
Jonathan Hjertström,
Software Developer, K2-Informatics (U) Ltd.
32, Kanjokya Street, Kololo, P.O. Box 8628,
Kampala, Uganda
tel. +256 41 532 865 / 871 / 873
fax. +256 41 532 910
http://www.k2informatics.com <http://www.k2informatics.com>
**************************************************************

-----Original Message-----
From: Click here to reveal e-mail address [mailto:Click here to reveal e-mail address]
Sent: den 30 juni 2002 01:48
To: aspngwebcontrols
Subject: [aspngwebcontrols] TreeNodeSrc

I get "[XmlException: There is invalid data at the root level. Line 1, position 1.]" when I set the TreeNodeSrc attribute of a treeview control to a file that generates the XML needed to build the tree. Any ideas?

| [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.Windows.Forms.TreeView
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