MvcSiteMapProvider icon indicating copy to clipboard operation
MvcSiteMapProvider copied to clipboard

Multiple nodes with the same URL were found

Open bbonch opened this issue 8 years ago • 2 comments

Hi guys! I have faced with some problem when implemented custom DynamicNodeProviderBase class. I have overrided GetDynamicNodeCollection method, which return DynamicNode elements for sitemap. All elements have distinct urls and keys. When I add new external link node with (http/https.*) url it throw exception 'Multiple nodes with the same URL were found for 'some url'', but GetDynamicNodeCollection return distinct elements. Is it known issue?

Thanks!

bbonch avatar Nov 27 '15 14:11 bbonch

Best guess is that you have it set up to load the dynamic node provider more than once, either because your dynamic node provider has more than one definition node or your configuration is setup in some other way to load the dynamic nodes more than once. If you could post your custom base class, node configuration, and any external DI setup (if applicable) you have, it might be possible to spot the problem.

NightOwl888 avatar Nov 28 '15 08:11 NightOwl888

Thanks for quick response. I will try to figure out. I will come back with more details if find something.

bbonch avatar Nov 30 '15 07:11 bbonch