Exception in template (Designs/specific/_parsed/espresso.parsed.cshtml): System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.fcdeca.Execute()
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context)
   at RazorEngine.Templating.TemplateService.Run(ITemplate template, DynamicViewBag viewBag)
   at RazorEngine.Templating.TemplateService.Parse(String razorTemplate, Object model, DynamicViewBag viewBag, String cacheName)
   at RazorEngine.Razor.Parse[T](String razorTemplate, T model, String cacheName)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()
@inherits Co3.Espresso.Website.TemplateBases.Pages.PageBase @using System.Web; @{ string websiteLang = GetGlobalValue("Global:Area.Lang"); string websiteIntegerSeparator = GetGlobalValue("Global:eCommerce.Currency.IntegerSeparator"); string websiteDecimalSeparator = GetGlobalValue("Global:eCommerce.Currency.DecimalSeparator"); } <!DOCTYPE html> <html lang="@websiteLang" data-integer-seperator="@websiteIntegerSeparator" data-decimal-seperator="@websiteDecimalSeparator"> <head> @GetValue("CopyRightNotice") <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, minimal-ui"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title> @GetValue("Title") </title> @Espresso.CriticalCSS <link href="https://fonts.googleapis.com/css?family=Material+Icons|Bitter:400,700" media="@Espresso.StylesheetAttributeMedia" rel="@Espresso.StylesheetAttributeRel" as="style"> <link href="/Files/Templates/Designs/specific/assets/_dist/css/default.css" media="@Espresso.StylesheetAttributeMedia" rel="@Espresso.StylesheetAttributeRel" as="style"> @Espresso.CriticalJS <link rel="shortcut icon" href="@Espresso.Area.Item.Favicon"> @GetValue("MetaTags") @if(GetGlobalValue("Global:Request.Host").Contains("espresso4.dk")) { <meta name="robots" content="noindex,nofollow"> } @{ string OpenGraphURL = GetGlobalValue( "Global:Request.Scheme" ) + "://" + GetGlobalValue( "Global:Request.Host" ) + GetGlobalValue( "Global:Pageview.Url" ); } <meta property="og:url" content="@OpenGraphURL"> <meta property="og:title" content="@Espresso.OpenGraphTitle"> <meta property="og:description" content="@Espresso.OpenGraphDescription"> <meta property="og:image" content="@Espresso.OpenGraphImage"> @{ if(1 == 2){ @GetValue("Stylesheets") } } @if( string.IsNullOrEmpty( Espresso.Area.GoogleTagManagerID ) == false && Espresso.Area.GoogleTagManagerID != "GTM-XXXX" ){ <!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','@Espresso.Area.GoogleTagManagerID');</script> <!-- End Google Tag Manager --> } <!-- Facebook Pixel Code --> <script> !function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(window,document,'script', 'https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '322142744950099'); fbq('track', 'PageView'); </script> <!-- End Facebook Pixel Code --> @GetValue("Javascripts") </head> <body class="@Espresso.Item.CustomClasses"> @if( string.IsNullOrEmpty( Espresso.Area.GoogleTagManagerID ) == false && Espresso.Area.GoogleTagManagerID != "GTM-XXXX" ){ <!-- Facebook pixel & Google Tag Manager (noscript) --> <noscript> <iframe src="https://www.googletagmanager.com/ns.html?id=@Espresso.Area.GoogleTagManagerID" height="0" width="0" style="display:none;visibility:hidden"></iframe> <img height="1" width="1" src="https://www.facebook.com/tr?id=322142744950099&ev=PageView&noscript=1"> </noscript> <!-- End Google Tag Manager (noscript) --> } @{ if( Espresso.Canvas.ClassList.ToString().Contains("e-page-is-loading") == true ){ Espresso.Canvas.ClassList.RemoveClasses("e-page-is-loading"); Espresso.Canvas.ClassList.AddClasses("is-loading"); } } @if( Espresso.Area.Item.OptimizedLoading == "True" ){ <div id="js-e-page-loading-overlay" class="e-page-loading-overlay e-loading-overlay is-loading"><div class="e-loading-spinner"></div></div> } <div class="@Espresso.Canvas.ClassList" id="js-e-canvas"> @using Dynamicweb.Content; @{ string Logo = Espresso.Area.Item.Logo; string Tagline = Espresso.Area.Item.Tagline; } @if( Espresso.Item.HeaderHide != "True" ){ <header class="e-section e-header js-e-header"> <div class="e-header-container"> <div class="container-fluid"> <div class="row"> <div class="col-xs-12"> <article class="e-header-wrapper"> <div class="e-logo"> <a href="/" class="e-logo-link"> <img src="@Logo" class="e-logo-img" alt="@Tagline"> @if( string.IsNullOrEmpty( Tagline ) == false ){ <p class="e-logo-tagline">@Tagline</p> } </a> </div> @if( Espresso.Item.NavigationHide != "True" ){ @GetValue("DwNavigation(dwnavheadercta)") if( Espresso.Area.Item.Search == "True" ){ <div class="e-search-toggle e-header-btn"> <a data-toggle="modal" data-target=".modal.e-search" class="btn text-auto"> <i class="material-icons m-a-0">search</i> </a> </div> } if( Espresso.Area.Item.Shop == "True" ){ <div class="e-header-btn e-cart-mini"> <a href="/shop/cart/" class="btn text-auto"> <i class="material-icons m-a-0">shopping_cart</i> <span class="e-cart-count">@GetGlobalValue("Global:eCommerce.Order.OrderLines.TotalProductQuantity")</span> </a> </div> } <div class="e-header-btn e-nav-toggle"> <a data-toggle="modal" data-target=".modal.e-nav-container" class="btn text-auto"> <i class="material-icons">menu</i> @Translate("Header menu button text", "Menu") </a> </div> <div class="e-nav-container modal js-e-nav-container" data-backdrop="false"> <nav class="e-nav"> <div class="e-nav-masthead"> <div class="e-logo"> <a href="/" class="e-logo-link"> <img src="@Logo" class="e-logo-img" alt="@Tagline"> @if( string.IsNullOrEmpty( Tagline ) == false ){ <p class="e-logo-tagline">@Tagline</p> } </a> </div> <div class="e-nav-toggle e-header-btn"> <button type="button" data-toggle="modal" data-target=".modal.e-nav-container" class="btn text-auto"> <i class="material-icons">close</i> </button> </div> @if( Espresso.Area.Item.Search == "True" ){ <div class="e-search-toggle e-header-btn"> <button type="button" data-toggle="modal" data-target=".modal.e-search" class="btn text-auto"> <i class="material-icons">search</i> </button> </div> } @if( Espresso.Area.Item.Shop == "True" ){ <div class="e-header-btn e-cart-mini"> <a href="/shop/cart/" class="btn text-auto"> <i class="material-icons m-a-0">shopping_cart</i> <span class="e-cart-count">@GetGlobalValue("Global:eCommerce.Order.OrderLines.TotalProductQuantity")</span> </a> </div> } </div> <section class="e-nav-global"> <ul class="nav"> @GetValue("DwNavigation(dwnavglobal)") </ul> </section> @if( string.IsNullOrEmpty( GetString("DwNavigation(dwnavlocalhorizontal)") ) == false ){ <section class="e-nav-local-horizontal hidden-lg-up"> <h3>@Espresso.DynamicwebPage.MenuText</h3> @GetValue("DwNavigation(dwnavlocalhorizontalmobile)") </section> } @if( Espresso.Area.Item.Search == "True" ){ <div class="e-search-toggle"> <button type="button" data-toggle="modal" data-target=".modal.e-search" class="btn text-auto"> <i class="material-icons">search</i> </button> </div> } @if( Espresso.Area.Item.Shop == "True" ){ <div class="e-cart-mini"> <a href="/shop/cart/" class="btn text-auto"> <i class="material-icons m-a-0">shopping_cart</i> <span class="e-cart-count">@GetGlobalValue("Global:eCommerce.Order.OrderLines.TotalProductQuantity")</span> </a> </div> } @if( string.IsNullOrEmpty( GetString("DwNavigation(dwnavcta)") ) == false ){ <section class="e-nav-cta"> <ul class="nav"> @GetValue("DwNavigation(dwnavcta)") </ul> </section> } @if( string.IsNullOrEmpty( GetString("DwNavigation(dwnavutilitiesprimary)") ) == false ){ <section class="e-nav-utilities-primary"> <ul class="nav"> @GetValue("DwNavigation(dwnavutilitiesprimary)") </ul> </section> } @if( string.IsNullOrEmpty( GetString("DwNavigation(dwnavutilitiessecondaryheader)") ) == false ){ <section class="e-nav-utilities-secondary"> <ul class="nav"> @GetValue("DwNavigation(dwnavutilitiessecondaryheader)") </ul> </section> } @if( string.IsNullOrEmpty( GetString("DwNavigation(dwnavcontext)") ) == false ){ <section class="e-nav-context"> <ul class="nav"> @GetValue("DwNavigation(dwnavcontext)") </ul> </section> } </nav> </div> } </article> </div> </div> </div> </div> @if( string.IsNullOrEmpty( GetString("DwNavigation(dwnavlocalhorizontal)") ) == false ){ <section class="e-nav-local-horizontal"> @GetValue("DwNavigation(dwnavlocalhorizontal)") </section> } </header> } @{ string eBreadcrumbClasslist = "e-breadcrumb js-e-breadcrumb"; if( String.IsNullOrEmpty( Espresso.Item.BreadcrumbColor ) == false && Espresso.Item.BreadcrumbColor != "auto"){ eBreadcrumbClasslist += string.Format(" e-breadcrumb-{0}", Espresso.Item.BreadcrumbColor); } } @if( Espresso.Item.BreadcrumbShow == "True" ){ <nav class="@eBreadcrumbClasslist"> <div class="container-fluid"> <div class="row"> <div class="col-xs-12"> @GetValue("DwNavigation(dwnavbreadcrumb)") </div> </div> </div> </nav> } <main class="e-content"> <article id="dwcontentmain" class="e-content-main @Espresso.ContentArea.ClassList"> <section class="e-section"> <div class="container-fluid"> <div class="row"> <div class="@Espresso.ContentSection.ClassList"> <div class="row"> @GetValue("DwContent(dwcontentmain)") </div> </div> </div> </div> </section> </article> </main> <footer class="e-footer"> <article class="e-footer-wrapper"> @if( Espresso.Item.Hide_Footer_Circle_Of_Good != "True" ){ @:<section><div><div><div><div> if( string.IsNullOrEmpty( Espresso.Area.Item.ContentID_CircleOfGood ) == false ){ @RenderPageContent( int.Parse( Espresso.Area.Item.ContentID_CircleOfGood ) ); } @:</div></div></div></div></section> } @if( Espresso.Item.FooterHide != "True" ){ <section class="e-footer-content e-section"> <div class="container-fluid"> <div class="row"> @if( string.IsNullOrEmpty( Espresso.Area.Item.FooterParagraphs ) == false ){ foreach( string paragraphID in Espresso.Area.Item.FooterParagraphs.Split( new char[]{','}, StringSplitOptions.None ) ){ @RenderParagraphContent( int.Parse( paragraphID ) ); } } @if( string.IsNullOrEmpty( GetString("DwNavigation(dwnavutilitiessecondaryfooter)") ) == false ){ <div class="col-xs-12"> <aside class="e-nav-utilities-secondary"> <ul class="nav nav-inline"> @GetValue("DwNavigation(dwnavutilitiessecondaryfooter)") </ul> </aside> </div> } </div> </div> </section> <hr> } <section class="e-footer-copyright e-section"> <div class="container-fluid"> <div class="row row-xs-center"> <div class="col-xs-12 col-sm-9"> <p class="e-copyright"> <a href="http://dechra.com" target="_blank"><img style="max-width: 50px;" src="/Files/Templates/Designs/specific/assets/img/logo-dechra.svg"></a> </p> </div> <div class="col-xs-12 col-sm-3 text-xs-left text-sm-right"> <p class="website-by-co3"><a href="https://www.co3.dk/" target="_blank">Website: Co3</a></p> </div> </div> </div> </section> </article> </footer> </div> <div class="e-cart-msg" id="js-e-cart-msg"> <button type="button" class="close" data-dismiss="msg"> <i class="material-icons">close</i> </button> <section class="e-section p-t-3 p-b-3"> <div class="container-fluid"> <div class="row"> <div class="col-xs-12"> <div class="js-e-cart-msg-content"> <script id="js-handlebars-tmpl-cart-msg-content" type="text/x-handlebars-template"> <div class="row"> <div class="col-xs-12 col-md-6"> <div class="e-cart-msg-last-added p-t-1"> <div class="row"> <div class="col-xs-2 text-xs-right"> <p class="h2"><i class="material-icons text-success">check</i></p> </div> <div class="col-xs-10"> <div class="row"> <div class="col-xs-12"> <h2>Varen er lagt i kurven</h2> <div class="row"> <div class="col-xs-4"> <p><img class="img-fluid" src="{{lastAdded.imageLargeClean}}" alt=""></p> </div> <div class="col-xs-8"> <h3>{{lastAdded.name}}</h3> <p class="">{{lastAdded.quantity}} á {{{lastAdded.price}}}</p> </div> </div> </div> </div> </div> </div> </div> </div> <div class="col-xs-12 col-md-6"> <div class="e-cart-msg-info p-t-1"> <div class="row"> <div class="col-xs-2 text-xs-right"> <p class="h2"><i class="material-icons">shopping_cart</i></p> </div> <div class="col-xs-10"> <h2>Få gratis levering</h2> <p> Køb for <strong>{{{shippingmethod.diffPriceForFreeFee}}}</strong> mere og få gratis levering. </p> <p> <a href="/shop/cart" class="btn btn-primary">Vis kurv ({{totalProductQuantity}})</a> </p> </div> </div> </div> </div> </div> </script> </div> </div> </div> </div> </section> </div> @if( Espresso.Area.Item.Search == "True" ){ <div class="modal fade e-search js-e-search modal-fullscreen" data-backdrop="false"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-body"> <button type="button" class="close" data-dismiss="modal"> <i class="material-icons">close</i> </button> <div class="container-fluid"> <div class="row"> <div class="col-xs-12 col-md-10 col-lg-8 col-xl-6 col-md-offset-1 col-lg-offset-2 col-xl-offset-3 m-t-3"> <form action="" class="js-e-search-form"> <div class="js-e-search-input-group e-search-input-group is-empty"> <label class="e-search-label" for="e-search-input"><i class="material-icons">search</i></label> <input type="text" class="js-e-search-input e-search-input form-control" name="q" id="e-search-input" placeholder='@Translate("Searchbar placeholder text", "Søgning")'> <span class="js-e-search-clear e-search-clear"><i class="material-icons">close</i></span> <button class="e-search-submit btn btn-primary" type="submit"><i class="material-icons p-a-0">search</i></button> </div> </form> </div> </div> <div class="js-e-search-result e-search-result"> <div class="row"> <div class="col-xs-12 col-md-10 col-lg-8 col-xl-6 col-md-offset-1 col-lg-offset-2 col-xl-offset-3"> <p class="e-search-result-info small text-muted m-t-1 m-b-3"><span class="js-e-search-result-count">0</span> @Translate("Search results text", "resultater")</p> </div> <div class="col-xs-12 col-md-10 col-lg-8 col-xl-6 col-md-offset-1 col-lg-offset-2 col-xl-offset-3"> <div class="js-e-search-result-products e-search-result-products is-empty m-b-4"> <script id="js-handlebars-tmpl-search-result-item-product" type="text/x-handlebars-template"> <div class="e-products"> <ul class="e-grid e-grid-sm m-b-1 grid-4-row"> {{#loop products}} <li class="e-grid-item"> <div class="e-product-container"> <div class="e-product"> <div class="e-product-image-container"> <a class="e-product-image-wrapper" href="{{{url}}}"> <img src="{{image}}" alt="" class="e-product-image"> </a> </div> <div class="e-product-text-container p-r-3"> <h3 class="e-product-name m-b-0"><a href="{{{url}}}">{{name}}</a></h3> <p class="e-product-text"> <a href="{{{url}}}">{{explanatoryText}}</a> </p> </div> </div> </div> </li> {{/loop}} </ul> <p class="js-e-search-products-show-all text-xs-center"><a href="" class="btn btn-secondary p-x-6">@Translate("eCom_Product_Search_ShowAllResultsText", "Vis alle produkter")</a></p> </div> </script> </div> </div> <div class="col-xs-12 col-md-10 col-lg-8 col-xl-6 col-md-offset-1 col-lg-offset-2 col-xl-offset-3"> <div class="js-e-search-result-pages e-search-result-pages is-empty m-b-3"> <script id="js-handlebars-tmpl-search-result-item-page" type="text/x-handlebars-template"> <div class="row"> {{#loop pages}} <div class="col-xs-12"> <p class="m-b-0"><a href="{{{url}}}" class="text-bold">{{{title}}}</a></p> <p class="m-b-0 small text-truncate"> <a href="{{{url}}}" class="text-auto text-muted"><span class="hidden-xs-down">@GetGlobalValue( "Global:Request.Host" )</span>{{{url}}}</a></p> <p class="small">{{{text}}}...</p> </div> {{/loop}} </div> </script> </div> </div> </div> <div class="js-e-search-loading-overlay e-loading-overlay e-search-loading-overlay"> <div class="e-loading-spinner"></div> </div> </div> </div> </div> </div> </div> </div> } @if( Espresso.Area.Item.BackToTopLink == "True" ){ <a href="#top" class="e-back-to-top js-e-back-to-top"><i class="material-icons">keyboard_arrow_up</i></a> } <script src="/Files/Templates/Designs/specific/assets/_dist/js/default.js?v=2" async=""></script> </body> @GetValue("CopyRightNotice") </html>