Errors running treview

Discussion in 'ASP .Net Web Controls' started by Mark, Jan 26, 2004.

  1. Mark

    Mark Guest

    Here is my aspx code
    <%@ Page language="c#" Codebehind="tiptree.aspx.cs" AutoEventWireup="false" Inherits="TipTree.tiptree" %><%@ Register TagPrefix="ie" Namespace="Microsoft.Web.UI.WebControls"
    Assembly="Microsoft.Web.UI.WebControls" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ><HTML><HEAD><title>tiptree</title><meta name="GENERATOR" Content="Microsoft Visual Studio 7.0"><meta name="CODE_LANGUAGE" Content="C#"><meta name="vs_defaultClientScript" content="JavaScript"><meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"></HEAD><body MS_POSITIONING="GridLayout"><form runat="server" ID="Form1"><div style="BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; OVERFLOW: auto; BORDER-LEFT: 1px solid; WIDTH: 210px; BORDER-BOTTOM: 1px solid; HEIGHT: 350px"><ie:treeview runat="server" id="oTree" TreeNodeSrc="state_city.xml"></ie:treeview></div></form></body></HTML

    Here is my xml data
    <TREENODES><treenode Text="Michigan"><treenode Text="Detroit" /><treenode Text="Farmington" /><treenode Text="Southfield" /></treenode><treenode Text="Washington" ><treenode Text="Bellevue" /><treenode Text="Redmond" /><treenode Text="Woodinville" /></treenode></TREENODES
    and here is an error
    Server Error in '/tiptree' Application
    -------------------------------------------------------------------------------

    The data at the root level is invalid. 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: The data at the root level is invalid. Line 1, position 1

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [XmlException: The data at the root level is invalid. Line 1, position 1.
    System.Xml.XmlTextReader.ParseRoot() +29
    System.Xml.XmlTextReader.Read() +12
    Microsoft.Web.UI.WebControls.TreeView.ReadXmlSrc(String TreeNodeSrc, String TreeNodeXsltSrc, String strOuter) +12
    Microsoft.Web.UI.WebControls.TreeView.ReadTreeNodeXmlSrc() +7
    Microsoft.Web.UI.WebControls.TreeView.OnInit(EventArgs e) +9
    System.Web.UI.Control.InitRecursive(Control namingContainer) +24
    System.Web.UI.Control.InitRecursive(Control namingContainer) +17
    System.Web.UI.Control.InitRecursive(Control namingContainer) +17
    System.Web.UI.Page.ProcessRequestMain() +17



    -------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
     
    Mark, Jan 26, 2004
    #1
    1. Advertising

  2. Mark

    MArk Guest

    Do we have any experts here? For god sake why it gives me that error
    Exact same code works OK on my home computer.
     
    MArk, Jan 27, 2004
    #2
    1. Advertising

  3. Mark

    ONIL@ Guest

    Hi MArk !

    Try :

    TagPrefix="iewc" instead of TagPrefix="ie" in the <% Register ...line

    I hope it helps
    Best Regards.
    --
    ONil@.
    MX.

    "MArk" <> wrote in message
    news:...
    > Do we have any experts here? For god sake why it gives me that error?
    > Exact same code works OK on my home computer.
     
    ONIL@, Jan 28, 2004
    #3
  4. Mark

    Mark Goldin Guest

    What it was is I had to set anonymous access to my virtual folder.
    So the question is what do I need to do that?

    "ONIL@" <> wrote in message
    news:...
    >
    > Hi MArk !
    >
    > Try :
    >
    > TagPrefix="iewc" instead of TagPrefix="ie" in the <% Register ...line
    >
    > I hope it helps
    > Best Regards.
    > --
    > ONil@.
    > MX.
    >
    > "MArk" <> wrote in message
    > news:...
    > > Do we have any experts here? For god sake why it gives me that error?
    > > Exact same code works OK on my home computer.

    >
    >
     
    Mark Goldin, Jan 28, 2004
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. binaryjesus
    Replies:
    1
    Views:
    396
    binaryjesus
    Jul 29, 2008
  2. Vinki
    Replies:
    2
    Views:
    344
    Patrice
    Dec 23, 2009
  3. Mark

    TreView

    Mark, Feb 9, 2004, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    115
  4. AR

    treview does not maintain state

    AR, May 8, 2006, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    140
    Prakash V
    Jun 7, 2006
  5. treview asp.net 2.0 issue

    , Aug 29, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    123
Loading...

Share This Page