.net - ASP.NET 站点地图配置错误

标签 .net asp.net sitemap

我收到了这个错误,但不知道它是什么意思:

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



你能帮助我吗?

最佳答案

可能是站点地图的东西......我用谷歌搜索并发现了这个:

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.

关于.net - ASP.NET 站点地图配置错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/761756/

相关文章:

c# - 调试 C# 自定义安装程序类

.net - Azure AD 异常 Microsoft.Identity.Client.MsalServiceException : The provided value for the input parameter 'scope' is not valid

c# - 在同一页面上使用两个用户控件?

c# - SqlDataAdapter 返回空数据集

.net - 在 RichTextBox 中隐藏超链接 URL(Windows 窗体)

c# - 等待以另一种方法启动的任务

c# - 如何从包含 HH :MM AM/PM? 的字符串中获取小时分和上午/下午

xml - 站点地图 (XML) 部分适用于 GitHub 页面,无法通过 Google Search Console 获取

javascript - 构建后未显示公共(public)目录中的 React sitemap.xml 文件

model-view-controller - MVCSiteMapProvider 不显示 SiteMapPath