Hide SiteMap Node

Posted on 2012-09-10
Last Modified: 2012-09-26
I have the following settings within my sitemap and web.config files however the sitemapnode still displays with roles that do not match allowed roles.
What else do I need to apply?

 'This file is actually located in ~/Forms/SignIn.aspx - do i need to spell relative path.
  <location path="SignIn.aspx">  
                <deny users="?"/>

    <siteMap defaultProvider="ListViewSiteMap" enabled="true">
        <add name="ListViewSiteMap" type="System.Web.XmlSiteMapProvider" siteMapFile="~/Navigation/ListViewNav.sitemap" securityTrimmingEnabled="true" />

            <siteMapNode url="" title="System Administration"  description="Secure Section of site for performing Administrative needs" roles="Administrator, Site Admin, Tier1" >
                <siteMapNode url="~/Forms/SignIn.aspx" title="Sign-In"  description="Sign-In" roles="Administrator, Site Admin"/>              
                <siteMapNode url="~/HelpCenter/HelpCenter.aspx" title="Help Center"  description="Find useful help tools to navigate and use ADCare Software" roles="*" />                
                <siteMapNode url="~/Lists_Views/TableList.aspx" title="Table Updates"  description="Add/Edit Table Data" roles="Administrator, Site Admin, Tier1"/>
                <siteMapNode url="~/Forms/ApplicationCarePlan.aspx" title="Application-Wide Care Plan"  description="Add/Edit Application Care Plans" roles="Administrator, Site Admin, Tier1"/>                
                <siteMapNode url="~/Lists_Views/PermissionsByRole.aspx" title="Default Permissions"  description="Add/Edit Default Permissions for Application Roles" roles="Administrator, Site Admin"/>
                <siteMapNode url="~/Account/SimpleRegister.aspx" title="Administration User Registration"  description="Add Default User for Registration" roles="Administrator"/>
Question by:Robert Treadwell
    LVL 83

    Expert Comment

    Yes try with


    Accepted Solution

    I actually solved this issue by placing .aspx in a folder and placed security on folder.

        <location path="SystemAdmin">
                    <allow roles="Administrator, Site Admin, Tier1"/>
                    <deny users="*"/>

    Author Closing Comment

    by:Robert Treadwell
    The above solution worked for issue.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now