troubleshooting Question

asp.NET SiteMap missing all of a sudden

Avatar of AkAlan
AkAlan asked on
Web DevelopmentASP.NET
3 Comments1 Solution454 ViewsLast Modified:
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>
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros