1
正在搜索互聯網I found a similar problem,但只有項目其他區域中的節點發生。無法解析區域中的站點地圖節點的URL
錯誤
無法解析URL的站點地圖結點憲章德Interveniência這 代表控制器processo行動carta_interveniencia。確保 可以解析此站點地圖節點的路由,並確定其默認值爲 ,從而可以解析當前站點地圖節點的URL。
網站地圖
<mvcSiteMapNode title="Cadastros" clickable="false" roles="*" >
<mvcSiteMapNode title="Processos" controller="processos" action="index">
<mvcSiteMapNode title="Novo" action="novo" />
<mvcSiteMapNode title="Editar" action="editar" dynamicNodeProvider="CreditoImobiliarioBB.Web.Infra.Sitemap.ProcessosDynamicNodeProvider, CreditoImobiliarioBB.Web" />
<mvcSiteMapNode title="Detalhes" action="detalhes" preservedRouteParameters="id" dynamicNodeProvider="CreditoImobiliarioBB.Web.Infra.Sitemap.ProcessosDynamicNodeProvider, CreditoImobiliarioBB.Web">
<mvcSiteMapNode title="Documentos" key="ProcessoDocumentos2" clickable="false" area="Documentos" controller="processo">
<mvcSiteMapNode title="Carta de Interveniência" preservedRouteParameters="id" action="carta_interveniencia"></mvcSiteMapNode>
</mvcSiteMapNode>
</mvcSiteMapNode>
</mvcSiteMapNode>
區登記
public class DocumentosAreaRegistration : AreaRegistration
{
public override string AreaName
{
get
{
return "Documentos";
}
}
public override void RegisterArea(AreaRegistrationContext context)
{
context.MapRoute(
name: "Documentos",
url: "{controller}/{id}/documento/{action}",
defaults: null,
constraints: new { id = @"^\d+$" },
namespaces: new string[] { "CreditoImobiliarioBB.Web.Areas.Documentos" }
);
}
}