In my application I have two files .sitemap(Mvc.sitemap and MvcCustom.sitemap)
I need to use the MvcCustom.sitemap file in my view, but it keeps trying to render the Mvc.sitemap:
`
</siteMap>`
`
@Html.ActionLink("SYSTEM", "Index", "Home", null, new { @class = "navbar-brand" })
The <sitemap> section is not supported by MvcSiteMapProvider version 4. See Upgrading from v3 to v4.
There is a document covering this exact procedure called Multiple SiteMaps in One Application. However, do note that there are better options for organizing nodes than to break them into different physical files, such as using visibility providers.
Hi guys!
In my application I have two files .sitemap(Mvc.sitemap and MvcCustom.sitemap) I need to use the MvcCustom.sitemap file in my view, but it keeps trying to render the Mvc.sitemap:
`
`
What's wrong?
The
<sitemap>
section is not supported byMvcSiteMapProvider
version 4. See Upgrading from v3 to v4.There is a document covering this exact procedure called Multiple SiteMaps in One Application. However, do note that there are better options for organizing nodes than to break them into different physical files, such as using visibility providers.
Related: