.NETGURU
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




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification