Exception in template (Designs/ProGolf/_parsed/webshop.parsed.cshtml): System.NullReferenceException: Object reference not set to an instance of an object.
   at Dynamicweb.Frontend.NavigationProviders.GroupNavigationProvider.MakeGroupTree(GroupCollection groups, NavigationItem parentNode, Int32 thisLevel, Int32 maxLevel, Page productPage)
   at Dynamicweb.Frontend.NavigationProviders.GroupNavigationProvider.MakeGroupTree(GroupCollection groups, NavigationItem parentNode, Int32 thisLevel, Int32 maxLevel, Page productPage)
   at Dynamicweb.Frontend.NavigationProviders.GroupNavigationProvider.MakeGroupTree(GroupCollection groups, NavigationItem parentNode, Int32 thisLevel, Int32 maxLevel, Page productPage)
   at Dynamicweb.Frontend.NavigationProviders.GroupNavigationProvider.MakeGroupTree(Page page, NavigationItem parentNode)
   at Dynamicweb.Frontend.NavigationProviders.GroupNavigationProvider.Process(NavigationItem node)
   at Dynamicweb.Frontend.XmlNavigation.XML(Int32 ParentID, Int32 StartLevel, Int32 StopLevel, Expand expand, Int32 areaID)
   at Dynamicweb.Frontend.XmlNavigation.GetNavigationHtml(Int32 ParentID, Int32 StartLevel, Int32 StopLevel, Expand ExpandMode, String NavigationName, String XsltPath, Int32 AreaID, Boolean SitemapMode, NameValueCollection settings, NameValueCollection attributes, IncludeMode mode)
   at Dynamicweb.Frontend.XmlNavigation.GetNavigationHtml(NameValueCollection settings, NameValueCollection attributes)
   at CompiledRazorTemplates.Dynamic.aacdabcde.Execute()
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context)
   at RazorEngine.Razor.Parse[T](String razorTemplate, T model, String cacheName)
   at Dynamicweb.Rendering.Template.Output()
@inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> @using System.Web; @{ var longlang = GetGlobalValue("Global:Area.LongLang"); var charset = GetString("CharSet"); var title = GetString("Title") + GetString("NIQ:ProductMetaTags"); var meta = GetString("Meta.Description"); var cart = "default.aspx?ID=15"; var qty = GetInteger("Ecom:Order.OrderLines.TotalProductQuantity"); var shop = GetString("Item.Area.ShopPageId"); var headimg = GetString("Item.Area.ImageUdsalg"); var headlink = GetString("Item.Area.LinkUdsalg"); var saleclass = "nav-udsalg"; if (meta == "") { meta = GetString("NIQ:ProductMetaDescription"); } if (String.IsNullOrEmpty(headimg)) { saleclass = ""; } } <!DOCTYPE html> <html dir="ltr" lang="@longlang"> <head> <meta charset="@charset"> <title>@GetValue("Title")</title> @GetValue("MetaTags") @GetValue("CopyRightNotice") @if (GetBoolean("NIQ:ForceDesktopMode") && HttpContext.Current.Request.Browser.IsMobileDevice) { <meta name="viewport" content="width=1024"> } else { <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> } <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <meta name="DC.publisher" content="NORRIQ Danmark - www.norriq.dk - team FI"> <meta name="msvalidate.01" content="005B9F969A854C3C6AA45703389D7C2A"> <link rel="shortcut icon" href="/Files/Images/pgsfavicon2012.ico"> <meta name="google-site-verification" content="UlFy2vSnorhYTfgHZKaPjFgOpWtEH_C69AHyK4pl4CI"> <meta property="og:title" content="@title"> <meta property="og:description" content="@meta"> <meta property="og:type" content="product"> <meta property="fb:admins" content="678920909"> @RenderSnippet("facebook") <link rel="stylesheet" type="text/css" href="/Files/Templates/Designs/ProGolf/css/progolf.min.css" media="screen"> <!-- 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','GTM-K2JB8C9');</script> <!-- End Google Tag Manager --> @GetValue("Stylesheets") @GetValue("Javascripts") </head> <body> <!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-K2JB8C9" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) --> <div id="wrap" class="clearfix"> <div id="static"> <nav class="navbar navbar-kpi hidden-xs hidden-sm"> <div class="container"> <div class="row kpi"> <div class="col-sm-9 col-md-9 text-left"> @RenderParagraphContent(339) </div> <div class="col-sm-3 col-md-3 text-right" id="language"> @RenderNavigation(new { Template = "Country.xslt", Parentid = "48" }) </div> </div> </div> </nav> <header class="navbar" id="head"> <div class="container green"> <div class="silhouet-left"> <div class="silhouet-right"> <div class="row"> <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3"> <button class="btn btn-icon navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".drop-navigation"> <span class="fa fa-bars"></span> </button> @if (!String.IsNullOrEmpty(headimg)) { if (String.IsNullOrEmpty(headlink)) { <div class="hidden-xs hidden-sm sales-box"> @("<")img src="@headimg" alt="badge" class="img-responsive" @("/>") </div> } else { <a href="@headlink" class="hidden-xs hidden-sm sales-box"> @("<")img src="@headimg" alt="badge" class="img-responsive" @("/>") </a> } } </div> <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 AC"> <div id="logo"><a href="/" title="G&aring; til forsiden"><img src="/Files/Images/logo.png" alt="ProGolf Scandinavia A/S"><span>Pro Golf Scandinavia A/S</span></a></div> </div> <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3"> <a href="@cart" class="cart-mini"> <span class="cart-head"> Din kurv </span> @if (qty > 0) { <span class="cart-amount"> @qty </span> <span class="cart-items hidden-xs hidden-sm"> Vare(r) </span> <span class="cart-total hidden-xs hidden-sm"> @GetString("Ecom:Order.OrderLines.Total.Price") </span> } else { <span class="visible-md visible-lg"> <span class="cart-amount"> 0 </span> <span class="cart-items"> Vare(r) </span> </span> } </a> </div> <nav role="navigation" class="collapse navbar-collapse drop-navigation clearfix @saleclass" id="topnav"> @RenderNavigation(new { Template = "drop_navigation_boot.xslt", Expandmode = "all" }) </nav> </div> </div></div> </div> <div class="container search"> @{ var query = GetString("Ecom:ProductList:Search.Query"); } <form class="search-box form-inline" id="search-form" action="/Default.aspx"> <input type="hidden" value="@query" id="searchstring"> <input type="hidden" name="ID" value="24"> <div class="form-group"> <input type="text" id="q" name="eComQuery" autocomplete="off" spellcheck="false" class="form-control" placeholder="Søg produkter" value="@query"> </div> <button id="ecomSearchBtn" type="submit" class="btn btn-primary"><span class="fa fa-search"></span></button> <div id="product-suggestions" class="dw-search-suggestions product-suggestions-box" style="display: none"> <a class="dw-suggestion-item"></a> <div class="dw-no-suggestions"> No suggestions </div> </div> </form> <script append="true"> require(['jquery', 'utilities/eCommerce.Overlay'], function ($, Overlay) { $('#ecomSearchBtn').click(function(e) { Overlay.show(document.body); }); $('#searchBox').submit(function(e) { Overlay.text('S&oslash;ger...'); }) }) </script> </div> </header> </div> <div id="main" class="clearfix"> @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> @{ var cols = "col-xs-12 col-sm-12 col-md-9 col-lg-10"; var groupid = @System.Web.HttpContext.Current.Request.QueryString["groupid"]; var prodid = @System.Web.HttpContext.Current.Request.QueryString["productid"]; var ecomquery = @System.Web.HttpContext.Current.Request.QueryString["ecomquery"]; } @if (String.IsNullOrEmpty(prodid)) { cols = "col-xs-12 col-sm-12 col-md-6 col-lg-8"; } <div class="container"> <div class="row"> <aside id="lSide" class="col-xs-12 col-sm-12 col-md-3 col-lg-2"> @if (String.IsNullOrEmpty(prodid)) { <div id="filters" class="collapse navbar-collapse">@GetValue("DwContent(filters)")</div> } else { <div class="hidden-xs hidden-sm panel panel-default lBox navi" id="catmenu"> <div class="panel-heading"> <h2 class="panel-title">Vælg kategori</h2> </div> <nav class="panel-body" id="leftnav"> @RenderNavigation(new { Template = "ShopNavigation.xslt", Expandmode = "all" }) </nav> </div> } <span id="allProductCount" style="display:none;">@GetString("Page:Ecom.ProductList.PageProdCnt")</span> <span id="productsPageSize" style="display:none;">@GetString("Page:Ecom.ProductList.PageSize")</span> </aside> <div class="@cols ecom" id="content"> @RenderNavigation(new { Template = "breadcrumb.xslt", Expandmode = "pathonly" }) <div id="webshop" class="row">@GetValue("DwContent(webshop)")</div> </div> @if (String.IsNullOrEmpty(prodid)) { <aside id="rSide" class="hidden-xs hidden-sm col-md-3 col-lg-2"> @RenderParagraphContent(8) @RenderParagraphContent(204) @RenderParagraphContent(9) @RenderParagraphContent(338) @RenderParagraphContent(336) @RenderParagraphContent(164) @RenderParagraphContent(335) </aside> } </div> </div> </div> <footer id="foot" class="clearfix"> <div id="footer" class="container"> <div class="row"> <div class="col-xs-12 col-sm-6 col-md-3 col-lg-3"> @RenderParagraphContent(2) </div> <div class="col-xs-12 col-sm-6 col-md-3 col-lg-3"> @RenderParagraphContent(3) </div> <div class="clearfix visible-sm-block"></div> <div class="col-xs-12 col-sm-6 col-md-3 col-lg-3"> @RenderParagraphContent(4) </div> <div class="col-xs-12 col-sm-6 col-md-3 col-lg-3"> @RenderParagraphContent(5) </div> </div> </div> <div id="copy" class="container"> <div class="rowx"> <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6"> @RenderParagraphContent(6) </div> <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6"> <a href="http://payex.dk" target="_blank" class="payment">&nbsp;</a> </div> </div> <div class="col-xs-12 col-sm-12 col-md-12 text-center"> @if (HttpContext.Current.Request.Browser.IsMobileDevice) { if (GetBoolean("NIQ:ForceDesktopMode")) { <a href='@GetString("NIQ:SwitchToMobileModeUrl")' class="view-change">Skift til mobil-visning</a> } else { <a href='@GetString("NIQ:SwitchToDesktopModeUrl")' class="view-change">Skift til desktop-visning</a> } } </div> </div> </footer> </div> <div id="fb-root"></div> <div style="display: none;"> <div id="brandsfilter"> <ul id="splitList" class="col-xs-6 col-sm-3 col-md-3 col-lg-3"> @foreach (var brand in GetLoop("NIQ:Loop.Manufactors")) { var link = brand.GetString("NIQ:ManufactorID"); <li> <a href="/Default.aspx?ID=8&amp;brand=@link" class="dropdown-sub"> @brand.GetString("NIQ:ManufactorName") </a> </li> } </ul> </div> </div> @if (GetBoolean("NIQ:JavaScriptDebug")) { <script src="/scripts/require.js"></script> @ProGolf.web.Razor.TimestampSource.GetJavaScriptWithTimestamp("/scripts/ProGolf/main.js") } else { @ProGolf.web.Razor.TimestampSource.GetJavaScriptWithTimestamp("/scripts/ProGolf/main.min.js") } <!-- NIQ --> <script> require(['translations'], function(translations) { translations.set('validation', { enterEmail: 'Please enter valid email' }); }); require(['ProGolf/master'], function (master) { master.Init(); }); </script> <script append="replace"></script> @* TODO: Is this intended to be functional (12-03-2015 JSS) @if (GetString("NIQ:AddedToCart") == "True" && GetGlobalValue("Global:Page.ID") != "cart") { <script type="text/javascript"> $(document).ready(function () { var addedTime = @GetString("NIQ:AddedToCartTimestamp")>; var currentTime = new Date().getTime(); if(currentTime - addedTime < 5000) { $.fancybox('<table class="cartadded"><tr><td><span class="XL">Vare tilf&#248;jet til kurven!</span></td></tr></table>',{'padding':5,'width':300,'height':100,'showCloseButton':false,'autoDimensions':false}); setTimeout(function () { $('#fancybox-close').click(); }, 1500); } }); </script> } *@ </body> </html>