I am using the default Sitemap provider with secutiry trimming. But, some how, I get:
A network-related or instance-specific error occurred while establishing a connection to SQL Server.
I'm thinking the sitemap provider is looking for the roles in the wrong place. My configuration is like this:
<connectionStrings>
<add name="DB" ... />
</connectionStrings>
<membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="15">
<providers>
<clear/>
<add name="SqlProvider" .../>
</providers>
</membership>
<roleManager enabled="true">
<providers>
<add connectionStringName="DB" type="System.Web.Security.SqlRoleProvider" ... />
</providers>
</roleManager>
The Sitemap tag is defined like this:
<siteMap defaultProvider="XmlSiteMapProvider" enabled="true" >
<providers>
<clear/>
<add name="XmlSiteMapProvider"
description="Default SiteMap provider."
type="System.Web.XmlSiteMapProvider "
siteMapFile="Web.sitemap"
securityTrimmingEnabled="true" />
</providers>
</siteMap>
Why am I getting the sql error? How does the trimming get the roles?
EDIT: