maartenba / MvcSiteMapProvider

An ASP.NET MVC SiteMapProvider implementation for the ASP.NET MVC framework.
Microsoft Public License
538 stars 218 forks source link

Multiple nodes with the same URL were found #420

Open bbonch opened 8 years ago

bbonch commented 8 years ago

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!

NightOwl888 commented 8 years ago

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.

bbonch commented 8 years ago

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