ASP.NET site map configuration error

I got this error, but I don’t know what it means:

System.Configuration.ConfigurationErrorsException: only one item <siteMapNode>is required directly inside the item <siteMap>.

Can you help me?

+3
source share
2 answers

Maybe there is something with a sitemap ... I googled and found this:

http://forums.asp.net/t/1245553.aspx

The sitemap must have one siteMapNode root under which all other elements are located. So there you are:

<siteMap>
    <siteMapNode title="Home" ...>
        all other nodes
    </siteMapNode>
</siteMap>

, node. , node, , .

+10

node, node SiteMapDataSource

ShowStartingNode="false"

:

<asp:SiteMapDataSource ID="MainMenuSiteMap" SiteMapProvider="MainMenuProvider" ShowStartingNode="false" runat="server" /`>
+2

Source: https://habr.com/ru/post/1706613/


All Articles