title: roles based menu does not work, what am I doing wrong?
body: <p>I can't figure this one out.</p>
  
  <ul>
  <li><p>I have the following SiteMap</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  
  &lt;siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" &gt;
      &lt;siteMapNode url="~/" title="Root"  description="Go root"&gt;
        &lt;siteMapNode url="~/h" title="Home"  description="Go home" /&gt;
  
        &lt;siteMapNode url="~/h/uo" title="Ultima Online" description="Ultima Online"&gt;        
          &lt;siteMapNode url="~/h/uo/get" roles="RegisteredUser" title="Get account!" description="Get account!" /&gt;
        &lt;/siteMapNode&gt;
      &lt;/siteMapNode&gt;
  &lt;/siteMap&gt;
  </code></pre>
  
  <ul>
  <li><p>I've an <code>XmlSiteMapProvider</code> with <code>securityTrimmingEnabled="true"</code>, which points to this site map file.</p></li>
  <li><p>The file I want to trim has an <code>authorization</code> rule in it's folder's <code>web.config</code></p>
  
  <pre><code>&lt;configuration&gt;
    &lt;system.web&gt;
      &lt;authorization&gt;
        &lt;deny users="?" /&gt;
      &lt;/authorization&gt;
    &lt;/system.web&gt;
  &lt;/configuration&gt;
  </code></pre></li>
  <li><p>The file can't be accessed via url, if I type <code>http://localhost/h/uo/get</code> I get redirected to login page.</p></li>
  <li><p>I've set up an <code>&lt;asp:Menu&gt;</code> like this in the Master page file:</p>
  
  <pre><code>&lt;asp:SiteMapDataSource ID="MenuSiteMap" ShowStartingNode="false"
                         SiteMapProvider="MenuSiteMapProvider" runat="server" 
  /&gt;
  
  &lt;div&gt;
      &lt;asp:Menu ID="NavigationMenu" runat="server" DataSourceID="MenuSiteMap" 
                CssClass="menu" EnableViewState="false" 
                IncludeStyleBlock="false" Orientation="Horizontal"
      /&gt;
  &lt;/div&gt;
  </code></pre></li>
  </ul></li>
  </ul>
  
  <p>Yet, when the page is rendered, I see the <code>Get account</code> node that is supposed to be trimmed when I'm not even logged in, no matter what.</p>
  
  <ul>
  <li>What am I doing wrong?</li>
  <li>Is there any other way to build a security trimming enabled site map navigation menu?</li>
  </ul>
  
  <p>I'm using ASP.NET 4.0, and URL-rewritting with an HttpModule.</p>