asp.NET SiteMap missing all of a sudden

AkAlan
AkAlan used Ask the Experts™
on
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>

Open in new window

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
on your SiteMapDataSource1 check to see if you have showstartingnode="true"in your attributes. you can also define it like so:

<asp:sitemapdatasource id="SiteMapDataSource1" runat="server" showstartingnode="true"  />
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.

Author

Commented:
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.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial