You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am receiving the following exception logged into our exception logger:
The node with key 'Home_Index_GET_Home__Planning_Index_GET_Planning__PlanTemplate_Index_GET_Templates__PlanTemplate_Create_GET_Create Template: Add Template Information' and title 'Create Template: Add Template Information' has 'id' configured in both RouteValues and PreservedRouteParameters, which is not allowed. PreservedRouteParameters copies the route value from the current HTTP request which would overwrite your configured RouteValue in every case. Either remove 'id' from PreservedRou
However, as you can see, the reported conflict between "id" and "preservedRouteParameters" does not exist.
The text was updated successfully, but these errors were encountered:
This has been fixed in v4.7, but has yet to be released. There are still many things to do before then, so I can't give an exact timeframe.
But if you are using external DI, you could use the cache decorator from here to work around the problem. It will request cache your SiteMap so it won't go out of scope between HTML helpers, which is what causes this.
The DI setup would be something along the lines of the following. Note that I haven't tested this, so you may need to tinker with it a bit.
I have the following sitemap nodes (partial).
I am receiving the following exception logged into our exception logger:
The node with key 'Home_Index_GET_Home__Planning_Index_GET_Planning__PlanTemplate_Index_GET_Templates__PlanTemplate_Create_GET_Create Template: Add Template Information' and title 'Create Template: Add Template Information' has 'id' configured in both RouteValues and PreservedRouteParameters, which is not allowed. PreservedRouteParameters copies the route value from the current HTTP request which would overwrite your configured RouteValue in every case. Either remove 'id' from PreservedRou
However, as you can see, the reported conflict between "id" and "preservedRouteParameters" does not exist.
The text was updated successfully, but these errors were encountered: