Doesn't work with areas...

Oct 18, 2010 at 1:31 AM

Well, I downloaded this because searches on Google said that this thing worked with MVC Areas. Well, it does not. I'm getting the "AmbiguousControllerException" exception.

Do I perhaps need to add "area" attributes to all sitemap nodes??

My sitemap file looks as follows:

<?xml version="1.0" encoding="utf-8" ?>
<mvcSiteMap xmlns="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-2.0" enableLocalization="true">
  <mvcSiteMapNode title="Home" controller="Home" action="Index">
    <mvcSiteMapNode title="About MyApp" controller="Home" action="About" area=""/>
    <mvcSiteMapNode title="Administration" controller="Home" action="Index" area="Admin" roles="myapp administrator">
      <mvcSiteMapNode title="Manage Committees" controller="Committees" action="Index" area="Admin"/>
      <mvcSiteMapNode title="Manage Elections" controller="Elections" action="Index" area="Admin"/>
      <mvcSiteMapNode title="Manage Nominations" controller="Nominations" action="Index" area="Admin"/>
    </mvcSiteMapNode>
    <mvcSiteMapNode title="Member Sign On" controller="Members" action="SignOn" visibility="!*" clickable="false"/>
  </mvcSiteMapNode>
</mvcSiteMap>
Coordinator
Oct 25, 2010 at 12:20 PM

See http://mvcsitemap.codeplex.com/workitem/5320