2012-12-06 39 views
0

我使用MVC網站地圖,從CodePlex上,我的Sitemap設置爲這個MVC 3/4地圖提供商例外

<mvcSiteMapNode title="LEADS" controller="Leads" action="DetailsLeads" Url="/Leads/DetailsLeads" roles="TEST"> 
      <mvcSiteMapNode title="LEADS1" controller="Leads" action="ScheduleMettingLeads" Url="/Leads/ScheduleMettingLeads" roles="TEST"/> 
      <mvcSiteMapNode title="LEADS2" controller="Leads" action="ServiceAppealLeads" Url="/Leads/ServiceAppealLeads" roles="TEST"/> 
     </mvcSiteMapNode> 

當我設置securityTrimmingEnabled = 「true」 時,我收到以下錯誤:

模糊控制器。爲LeadsController找到多種控制器類型。考慮通過將控制器名稱空間添加到ControllerBuilder.Current.DefaultNamespaces來縮小要搜索的位置。

+0

您是否有多個控制器在不同領域命名'Leads'? –

+0

它的同一個控制器有不同的動作 – StringBuilder

+0

這不是我問的問題。你有'Foo.Controllers.Leads'和'Foo.Areas.Bar.Controllers.Leads'? –

回答