Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Controls (http://www.velocityreviews.com/forums/f63-asp-net-web-controls.html)
-   -   Errors running treview (http://www.velocityreviews.com/forums/t772436-errors-running-treview.html)

Mark 01-26-2004 09:21 PM

Errors running treview
 
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(S tring TreeNodeSrc, String TreeNodeXsltSrc, String strOuter) +12
Microsoft.Web.UI.WebControls.TreeView.ReadTreeNode XmlSrc() +7
Microsoft.Web.UI.WebControls.TreeView.OnInit(Event Args 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 01-27-2004 09:01 PM

RE: Errors running treview
 
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@ 01-28-2004 12:25 AM

Re: Errors running treview
 

Hi MArk !

Try :

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

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

"MArk" <anonymous@discussions.microsoft.com> wrote in message
news:E9C59E77-D21C-41DA-A29E-5E43172EB034@microsoft.com...
> 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 01-28-2004 12:27 AM

Re: Errors running treview
 
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@" <onila@hotmail.com> wrote in message
news:egh7FPS5DHA.1804@TK2MSFTNGP12.phx.gbl...
>
> Hi MArk !
>
> Try :
>
> TagPrefix="iewc" instead of TagPrefix="ie" in the <% Register ...line
>
> I hope it helps
> Best Regards.
> --
> ONil@.
> MX.
>
> "MArk" <anonymous@discussions.microsoft.com> wrote in message
> news:E9C59E77-D21C-41DA-A29E-5E43172EB034@microsoft.com...
> > Do we have any experts here? For god sake why it gives me that error?
> > Exact same code works OK on my home computer.

>
>





All times are GMT. The time now is 11:40 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.