Hide SiteMap Node

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">  
        <system.web>
            <authorization>
                <deny users="?"/>
            </authorization>
        </system.web>
    </location>

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

            <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"/>
            </siteMapNode>
Robert TreadwellManaging DirectorAsked:
Who is Participating?
 
Robert TreadwellManaging DirectorAuthor Commented:
I actually solved this issue by placing .aspx in a folder and placed security on folder.

    <location path="SystemAdmin">
        <system.web>
            <authorization>
                <allow roles="Administrator, Site Admin, Tier1"/>
                <deny users="*"/>
            </authorization>
        </system.web>
    </location>
0
 
CodeCruiserCommented:
Yes try with

~/Forms/SignIn.aspx
0
 
Robert TreadwellManaging DirectorAuthor Commented:
The above solution worked for issue.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.