|
-
Jun 12th, 2007, 08:16 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] TreeView not working outside of VWD
Running the application through visual web developer and it works fine. But through local host or remotely, I get the following error:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type System.Web.UI.WebControls.SiteMapDataSource from assembly System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
Source Error:
Line 7: <body>
Line 8: <form runat="server">
Line 9: <asp:SiteMapDataSource ID="mySiteMapDataSource"
Line 10: runat="server" />
Line 11: <asp:TreeView ID="myTreeView" runat="server"
Source File: c:\inetpub\wwwroot\sitemap_and_tree_view\TreeViewDemo.aspx Line: 9
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2379; ASP.NET Version:1.1.4322.2379
The code in the page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>TreeView Demo</title>
</head>
<body>
<form runat="server">
<asp:SiteMapDataSource ID="mySiteMapDataSource"
runat="server" />
<asp:TreeView ID="myTreeView" runat="server"
DataSourceID="mySiteMapDataSource" />
</form>
</body>
</html>
The sitemap file code:
<siteMap
xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0">
<siteMapNode title="Home" url="~/Default.aspx"
description="Home">
<siteMapNode title="TreeViewDemo" url="~/TreeViewDemo.aspx"
description="TreeView Example" />
<siteMapNode title="ClickEvent" url="~/ClickEvent.aspx"
description="ClickEvent Example" />
<siteMapNode title="Loops" url="~/Loops.aspx"
description="Loops Example" />
</siteMapNode>
</siteMap>
I'm at a loss as it appears it's exactly as the book describes it.
-
Jun 13th, 2007, 12:25 AM
#2
Thread Starter
Hyperactive Member
Re: TreeView not working outside of VWD
Figured it out, was using .net 1.1 and not 2.0 under properties.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|