Error executing template "Designs/Rapido/Navigation/Breadcrumbs.cshtml"
System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at Dynamicweb.Ecommerce.Products.GroupRelation.GetGroupRelationsByChildId(String childId)
   at Dynamicweb.Ecommerce.Products.Group.get_IsTopGroup()
   at Dynamicweb.Ecommerce.Shops.Shop.GetTopLevelGroups(String languageId)
   at Dynamicweb.Ecommerce.Frontend.Navigation.GroupNavigationTreeNodeProvider.GetGroupsBySettings(PageNavigationSettings ecomSettings)
   at Dynamicweb.Ecommerce.Frontend.Navigation.GroupNavigationTreeNodeProvider.GetGroups(NavigationTreeNode parent, Page page)
   at Dynamicweb.Ecommerce.Frontend.Navigation.GroupNavigationTreeNodeProvider.GetNodes(NavigationContext context, NavigationSettings settings, NavigationTreeNode parent)
   at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
   at Dynamicweb.Frontend.Navigation.NavigationService.FilterNodesByExpandMode(NavigationContext context, NavigationSettings settings, NavigationTreeNode parent, IEnumerable`1 nodes)
   at Dynamicweb.Frontend.Navigation.NavigationService.GetNavigationNodes(NavigationContext context, NavigationSettings settings, NavigationTreeNode parent)
   at Dynamicweb.Frontend.Navigation.NavigationTreeNodeViewModel.get_Nodes()
   at CompiledRazorTemplates.Dynamic.RazorEngine_203927381c834992b8abd118b98ee2b5.Execute() in C:\inetpub\wwwroot\eCommerce\DK-FUNKI\Solutions\Rapido3.0\Files\Templates\Designs\Rapido\Navigation\Breadcrumbs.cshtml:line 45
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
   at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.<RunCompile>b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.RazorTemplateRenderingProvider.Render(Template template)
   at Dynamicweb.Rendering.TemplateRenderingService.Render(Template template)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.Navigation.NavigationTreeViewModel> 2 3 @if (Model.Nodes.Count() > 0) { 4 <ul class="breadcrumb dw-mod"> 5 @RenderNodes(Model.Nodes) 6 </ul> 7 } 8 9 10 @helper RenderNodes(IEnumerable<Dynamicweb.Frontend.Navigation.NavigationTreeNodeViewModel> nodes) 11 { 12 foreach (var node in nodes) 13 { 14 <li class="breadcrumb__item @(node.IsActive ? "active" : "") dw-mod"> 15 @if (node.Nodes.Count() > 0) 16 { 17 <a href="@node.Link" title="@node.Name">@node.Name</a> 18 } 19 else 20 { 21 <span class="dw-mod">@node.Name</span> 22 } 23 </li> 24 @RenderNodes(node.Nodes) 25 } 26 } 27 28 @helper RenderSchemaItem(IEnumerable<Dynamicweb.Frontend.Navigation.NavigationTreeNodeViewModel> nodes, int position) 29 { 30 foreach (var node in nodes) 31 { 32 <text>{ 33 "@@type": "ListItem", 34 "position": @position, 35 "name": "@node.Name", 36 "item": "@(Dynamicweb.Context.Current.Request.Url.Scheme + "://" + Dynamicweb.Context.Current.Request.Url.Host + node.Link)" 37 }@(node.Nodes.Count() > 0 ? "," : "")</text> 38 @RenderSchemaItem(node.Nodes, position + 1) 39 } 40 } 41 <script type="application/ld+json"> 42 { 43 "@@context": "", 44 "@@type": "BreadcrumbList", 45 "itemListElement": [@RenderSchemaItem(Model.Nodes, 1)] 46 } 47 </script>


Art. no.: 20000038

In addition to cookies that are strictly necessary to operate this website, we use the following types of cookies and other tracking tools to improve your experience and our services: The website uses cookies, web beacons, JavaScript and similar technologies. Insofar as third parties are involved we cannot control further data transfer standards and / or tracking. We therefore inform you of the specific cookie settings and ask you to select the cookie settings that seem desirable and acceptable for your use. We use service provider in Non-EU-Countries including the US. We generally strive to find trusted partners that generate pseudonymous user profiles for adapting the website to the user, for market research and for advertising. Generated data can also be shared with third parties while the user profiles cannot be combined with personal data. You may withdraw your consent to cookies at any time once you have entered the website through a link in the privacy and cookie policy, which you can find at the bottom of each page on the website. Privacy politics

More information...