when i use security trimming. i cant figure out whats wrong. Please help me =)

secure/web.config its in a map called secure with admin.apx

<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
  <location path="Secure/Admin" allowOverride="false"/>  
  <system.web>

        
        <authorization>
            <allow roles="Administrators" />
            <deny users="*" />
        </authorization>

    
    </system.web>
</configuration>

Web.sitemap

<?xml version="1.0" encoding="utf-8"?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0">
  <siteMapNode>
   
    <siteMapNode url="~/Default.aspx" title="Home" roles="*" />

    <siteMapNode url="~/HotPicks.aspx" title="HotPicks" roles="*" />
    <siteMapNode url="~/Events.aspx" title="Events"  roles="*"/>
    <siteMapNode url="~/Forums.aspx" title="Forums" roles="*" />
    <siteMapNode url="~/FAQ.aspx" title="FAQ" roles="*" />
    <siteMapNode url="~/Secure/Admin.aspx" title="Admin" roles="Administrators" />
      </siteMapNode>
</siteMap>

web.config

<?xml version="1.0"?>
<!-- 
    Note: As an alternative to hand editing this file you can use the 
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in 
    machine.config.comments usually located in 
    \Windows\Microsoft.Net\Framework\v2.x\Config 
-->
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
	<appSettings/>
	<connectionStrings>
		<add name="MyComicsConnectionString" connectionString="Data Source=GARBAGEC-88A927\sqlexpress;Initial Catalog=MyComics;Integrated Security=True" providerName="System.Data.SqlClient"/>
	</connectionStrings>
	<system.web>


    <roleManager enabled="true" />
    <pages theme="MyComics"/>
    
   
    <siteMap>
      <providers>
        <remove name ="AspNetXmlSiteMapProvider"/>
        <add name ="AspNetXmlSiteMapProvider" description="Default SiteMap provider."
        type="System.Web.XmlSiteMapProvider" siteMapFile="web.sitemap"
        securityTrimmingEnabled="true" />
      </providers>
    </siteMap>





    <caching>
      <sqlCacheDependency enabled="true" pollTime="5000">
        <databases>
          <add name="MyComics"
          connectionStringName="MyComicsConnectionString" />
        </databases>
      </sqlCacheDependency>
    </caching>

    
		<!-- 
            Set compilation debug="true" to insert debugging 
            symbols into the compiled page. Because this 
            affects performance, set this value to true only 
            during development.
        -->
		<compilation debug="true"/>
		<!--
            The <authentication> section enables configuration 
            of the security authentication mode used by 
            ASP.NET to identify an incoming user. 
        -->
		<authentication mode="Forms" />
		<!--
            The <customErrors> section enables configuration 
            of what to do if/when an unhandled error occurs 
            during the execution of a request. Specifically, 
            it enables developers to configure html error pages 
            to be displayed in place of a error stack trace.

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
	</system.web>
</configuration>

i found out what the problem was, so if any mod or admin feels like it the can move och erase this tread.


<siteMapNode url="~/Default.aspx" title="Home" roles="*" /> the problem!!... "/"

<siteMapNode url="~/HotPicks.aspx" title="HotPicks" roles="*" />
<siteMapNode url="~/Events.aspx" title="Events" roles="*"/>
<siteMapNode url="~/Forums.aspx" title="Forums" roles="*" />
<siteMapNode url="~/FAQ.aspx" title="FAQ" roles="*" />
<siteMapNode url="~/Secure/Admin.aspx" title="Admin" roles="Administrators" />
</siteMapNode>
</siteMap>

Please Dha_King move your thread to ASP.NET forum to get fast help http://www.daniweb.com/forums/forum18.html

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.