Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET site map configuration error

I have received this error, but don't know what it means:

System.Configuration.ConfigurationErrorsException: Exactly one <siteMapNode> element is required directly inside the <siteMap> element.

Can you help me?

like image 466
mohammad reza Avatar asked Dec 13 '22 04:12

mohammad reza


1 Answers

Could be something with sitemap... I googled and found this:

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

The site map has to have a single root siteMapNode element, underneath which all other elements reside. So you have:

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

This means that all nodes are at least a child of the root node. When displaying the Menu you can chose to not show the root node, or to show both it and the child nodes together.

like image 167
Kjensen Avatar answered Dec 30 '22 21:12

Kjensen