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>