Exception in template (Designs/jcn-bolig/_parsed/espresso.parsed.cshtml): System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.cbfbcdacd.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|Roboto:300,400,700|Roboto+Slab:300,400,700|Roboto+Mono:300,400,700" media="@Espresso.StylesheetAttributeMedia" rel="@Espresso.StylesheetAttributeRel" as="style"> <link href="/Files/Templates/Designs/jcn-bolig/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( Espresso.IsStagingUrl == true ) { <meta name="robots" content="noindex,nofollow"> } @{ string ogUrl = GetGlobalValue( "Global:Request.Scheme" ) + "://" + GetGlobalValue( "Global:Request.Host" ) + GetGlobalValue( "Global:Pageview.Url" ); } <meta property="og:url" content="@ogUrl"> <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 --> } @GetValue("Javascripts") </head> <body> @if( string.IsNullOrEmpty( Espresso.Area.GoogleTagManagerID ) == false && Espresso.Area.GoogleTagManagerID != "GTM-XXXX" ){ <!-- 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></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 is-loading"><div id="js-e-page-loading-spinner" class="e-loading-spinner is-loading">Loading...</div></div> } <div class="@Espresso.Canvas.ClassList" id="js-e-canvas"> @{ string Logo = Espresso.Area.Item.Logo; string Tagline = Espresso.Area.Item.Tagline; } @if( Espresso.Item.HeaderHide != "True" ){ <header class="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"> <p class="e-logo-tagline">@Tagline</p> </a> </div> <div class="hidden-md-down"> @GetValue("DwNavigation(dwnavheadercta)") </div> <div class="e-header-cta vl-cta-kontakt"> <a href="/kontakt" class="btn">Kontakt os</a> </div> <div class="e-nav-toggle"> <a data-toggle="modal" data-target=".modal.e-nav-container" class="btn"> <i class="material-icons">menu</i> <span class="hidden-xs-down"> Menu </span> </a> </div> <div class="e-nav-container modal js-e-nav-container" data-backdrop="false"> <nav class="e-nav"> <div class="e-nav-header"> <div class="e-logo"> <a href="/" class="e-logo-link"> <img src="@Logo" class="e-logo-img" alt="@Tagline"> <p class="e-logo-tagline">@Tagline</p> </a> </div> <div class="e-nav-toggle"> <button type="button" data-toggle="modal" data-target=".e-nav-container.modal" class="btn btn-link"> <i class="material-icons">close</i> </button> </div> </div> <section class="e-nav-global"> <ul class="nav"> @GetValue("DwNavigation(dwnavglobal)") </ul> </section> @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> @if( string.IsNullOrEmpty( GetString("DwNavigation(dwnavlocalhorizontal)") ) == false ){ <aside class="e-nav-local-horizontal"> @GetValue("DwNavigation(dwnavlocalhorizontal)") </aside> } </div> </article> </div> </div> </div> </div> </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 p-t-5"> <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> <section class="e-section e-section-pre-footer p-t-2"> <div class="container-fluid"> <div class="row"> <div class="col-xs-12"> <div class="row"> @RenderParagraphContent( 9013 ) @RenderParagraphContent( 9014 ) @RenderParagraphContent( 9015 ) </div> </div> </div> </div> </section> <footer class="e-footer"> <article class="e-footer-wrapper"> @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> } <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"> Copyright &copy; @GetGlobalValue("Global:Server.Date.Year") @Espresso.Area.Item.CompanyName. Alle rettigheder forbeholdes.</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"> <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="/system/data/search?q=" 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="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 is-empty"> <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> resultater</p> <ol class="js-e-search-result-list e-search-result-list list-unstyled"> <script id="js-handlebars-tmpl-search-result-item" type="text/x-handlebars-template"> {{#loop results}} <li class="m-b-2"> <p class="m-b-0"><a href="{{url}}" class="text-bold">{{{title}}}</a></p> <p class="small"> <a href="{{url}}" class="text-auto text-muted"><span class="hidden-xs-down">@GetGlobalValue( "Global:Request.Host" )</span>{{url}}</a> <br> {{{text}}}...</p> </li> {{/loop}} </script> </ol> </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/jcn-bolig/assets/_dist/js/default.js" async=""></script> @if( HttpContext.Current.Request.Url.AbsolutePath == "/admin/public/404.aspx" ) { <script> dataLayer.push({'check404': '404'}); </script> } </body> @GetValue("CopyRightNotice") </html>