Many users seems have problem with the sqlSitemapProvider and me too!
Problem 1:
If I add the line: sqlCacheDependency="CommandNotification" in my web.config within the sitemapnode the whole treemenu disappears.
If I remove it the treemenu shows up again, why this do you think?
Problem 2:
If I change add a node in the database the treemenu won't update after I refresh the page.
Is it because problem nr. 1?
The code I'm using:
Web.config
<add name="SqlServer" connectionString="Data Source=*********;Initial Catalog=******; uid=******;
pwd=*******; Connect Timeout=10;" providerName="System.Data.SqlClient"/>
<siteMap enabled="true" defaultProvider="MySiteMapProvider">
<providers>
<add name="MySiteMapProvider"
type="SqlSiteMapProvider"
connectionStringName="SqlServer"
securityTrimmingEnabled="true"
sqlCacheDependency="CommandNotification" />
</providers>
</siteMap>
<caching>
<sqlCacheDependency enabled="true"/>
</caching>
Default.aspx
<asp:TreeView ID="TreeView1"
runat="server"
DataSourceID="SiteMapDataSource1">
</asp:TreeView>
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />