搜索互联网,我发现类似的问题 ,但我只用在其他项目中的节点出现。
错误
无法解析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" }
);
}
}