Error executing template "Designs/kyner/_partials/breadcrumb.cshtml"
System.IndexOutOfRangeException: ProductCreated
at System.Data.ProviderBase.FieldNameLookup.GetOrdinal(String fieldName)
at System.Data.SqlClient.SqlDataReader.GetOrdinal(String name)
at System.Data.SqlClient.SqlDataReader.get_Item(String name)
at Dynamicweb.Ecommerce.Products.ProductRepository.ExtractProductInternal(IDataReader dataReader, Nullable`1& groupProductRelationSortingExists)
at Dynamicweb.Ecommerce.Products.ProductRepository.ExtractProduct(IDataReader dataReader, Nullable`1& groupProductRelationSortingExists)
at Dynamicweb.Ecommerce.Products.ProductRepository.GetProductsBySql(CommandBuilder query, Boolean doRefactoring, Boolean bulkFill, Boolean useAssortments)
at Dynamicweb.Ecommerce.Frontend.NavigationProviders.GroupNavigationProvider.TryAddProducts(GroupNavigationItem groupItem, Group group, Int32 currentLevel, Int32 maxLevel, Page productPage, Page currentPage)
at Dynamicweb.Ecommerce.Frontend.NavigationProviders.GroupNavigationProvider.MakeGroupTree(IEnumerable`1 groups, Page page, NavigationItem parentNode, Int32 thisLevel, Int32 maxLevel, Page productPage)
at Dynamicweb.Ecommerce.Frontend.NavigationProviders.GroupNavigationProvider.MakeGroupTree(IEnumerable`1 groups, Page page, NavigationItem parentNode, Int32 thisLevel, Int32 maxLevel, Page productPage)
at Dynamicweb.Ecommerce.Frontend.NavigationProviders.GroupNavigationProvider.MakeGroupTree(Page page, NavigationItem parentNode)
at Dynamicweb.Ecommerce.Frontend.NavigationProviders.GroupNavigationProvider.Process(NavigationItem node)
at Dynamicweb.Ecommerce.Frontend.NavigationProviders.GroupNavigationProvider.ProcessTree(RootNavigationItem rootNode, NavigationType navigationType)
at Dynamicweb.Frontend.XmlNavigation.MakeXml(Int32 parentId, Int32 levelStart, Int32 levelStop, Expand expand, Int32 selectedAreaId)
at Dynamicweb.Frontend.XmlNavigation.GetNavigationHtml(Int32 parentId, Int32 levelStart, Int32 levelStop, Expand expand, String name, String xsltPath, Int32 selectedAreaId, Boolean sitemapMode, NameValueCollection settings, NameValueCollection attributes, IncludeMode mode)
at Dynamicweb.Frontend.XmlNavigation.GetNavigationHtml(NameValueCollection settings, NameValueCollection attributes)
at CompiledRazorTemplates.Dynamic.RazorEngine_b584e035ac8745408ff96fe206553686.Execute() in E:\Dynamicweb.NET\Solutions\kyner-espresso-4\Files\Templates\Designs\kyner\_partials\breadcrumb.cshtml:line 15
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 ViewModelTemplate< PageBaseModel > 2 @using Co3.Espresso.Website.Models.FrontEnd 3 @using Dynamicweb.Rendering 4 @using Co3.Espresso.Website.Models.FrontEnd.Pages 5 @using Co3.Espresso.Website.Models.FrontEnd.Settings 6 @using Co3.Espresso.Website.Services 7 @using Dynamicweb.Content; 8 @using Dynamicweb.Extensibility; 9 @{ 10 ClassList breadcrumbClasses = new ClassList( "e-section e-breadcrumb js-e-breadcrumb d-none d-md-block" ); 11 if ( Model.Item.Breadcrumb != "auto" && Model.Item.Breadcrumb != "none" && String.IsNullOrEmpty( Model.Item.Breadcrumb ) == false ) 12 { 13 breadcrumbClasses.AddClasses( string.Format( " e-breadcrumb-{0}", Model.Item.Breadcrumb ) ); 14 } 15 string navigationHtmlBreadcrumb = RenderNavigation( new 16 { 17 id = "dwnav-breadcrumb", 18 template = "breadcrumb.xslt", 19 startlevel = 1, 20 endlevel = 10, 21 expandmode = "pathonly", 22 sitemapmode = true 23 } ); 24 } 25 26 @if ( string.IsNullOrEmpty( navigationHtmlBreadcrumb ) == false && Model.Item.Breadcrumb != "none" && string.IsNullOrEmpty( Model.Item.Breadcrumb ) == false ) 27 { 28 @RenderingService.Instance.SectionStart( new SectionSettings() 29 { 30 Classes = breadcrumbClasses, 31 ContentClasses = new ClassList( "col-12" ) 32 } ) 33 <div class="col-12"> 34 <nav class="e-breadcrumb-container"> 35 <ol class="breadcrumb nav" itemscope itemtype="https://schema.org/BreadcrumbList"> 36 <li class="breadcrumb-item"> 37 <a href="/"> 38 @ServiceLocator.Current.GetPageService().GetFirstPageForArea( Model.DynamicwebPage.Area.ID ).MenuText 39 </a> 40 </li> 41 @navigationHtmlBreadcrumb 42 </ol> 43 </nav> 44 </div> 45 @RenderingService.Instance.SectionEnd() 46 } 47 48
Produkt nr.

205500

Materiale
Børstet Krom
Dimensioner
78mm
Længde
78
Produkt type
Husnummer
Model
565
keyboard_arrow_up