Avatar of AkAlan
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>

Open in new window

ASP.NETWeb Development

Avatar of undefined
Last Comment
AkAlan

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
disrupt

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Rahul Agarwal

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.
AkAlan

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.
Your help has saved me hundreds of hours of internet surfing.
fblack61