AkAlan
asked on
asp.NET SiteMap missing all of a sudden
I have a very small Visual Studio solution which contains a web site and a web application. The web application was recently created by converting the web site into a web app. I am using a Master page and I have a web.sitemap file with just one sitenode. I have been developing a web page today in the web app and I noticed the link from the sitemap was not there when I viewd it in Browser. It was definitaely there this morning. I opened the web site to see what was going on and it doesn't show in browser mode either. I don't know what I could have done in the solution that could cause this problem to effect both projects. The web.sitemap, web.config and Treeviews all look fine. Any ideas? Thanks for any help
TreeView:
<asp:TreeView ID="tvSiteMap"
DataSourceID="SiteMapDataSource1"
ExpandDepth="3"
sknId="StandardTreeview"
runat="server" />
<asp:SiteMapDataSource
ID="SiteMapDataSource1"
runat="server"
SiteMapProvider="XmlSiteMapProvider"/>
web.sitemap:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode title="Arctec Logistics Home Page" url="https://www.arctecalaska.com/Portal/ProjectSupport/Logistics.aspx" roles ="ars\Everyone" description="Logistics Home">
<siteMapNode
title ="Requisitions"
roles ="ars\Everyone">
<siteMapNode
title="View Requisitions"
url="~/Requisitions/OpenReqFilter.aspx"
description="View Requisitions"/>
</siteMapNode>
</siteMapNode>
</siteMap>
web.config code for sitemap:
<siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
<providers>
<add name="XmlSiteMapProvider" description="Default SiteMap provider" type="System.Web.XmlSiteMapProvider" siteMapFile="Web.sitemap" securityTrimmingEnabled="true"/>
</providers>
</siteMap>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The sitemap disappears only when the sitemap path is broken, may be when you converts the website to web application then sitemap path are broken.
ASKER
The sitemap worked after the conversion. When it broke, it broke both in my web site and my web application. I'll look at the showstartingnode in the morning, thanks.