Error executing template "Designs/EasyLaser2019/_parsed/index.parsed.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.RazorEngine_f775c26db48449548dd4b8b6a0958af4.Execute() in D:\wwwroot\easylaser2019.se\Files\Templates\Designs\EasyLaser2019\_parsed\index.parsed.cshtml:line 42
   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.b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 @using System 2 @using System.Web 3 @using Dynamicweb.Frontend 4 @using Dynamicweb.Frontend.Devices 5 @using Softgear.Easylaser.Data.Frontend 6 @using Renderer = Softgear.Easylaser.Data.Frontend.Renderer 7 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 8 <!DOCTYPE html> 9 <html> 10 <head> 11 <!-- set the encoding of your site --> 12 <meta charset="utf-8"> 13 <!-- set the viewport width and initial-scale on mobile devices --> 14 <meta name="viewport" content="width=device-width, initial-scale=1"> 15 16 <link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png"> 17 <link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png"> 18 <link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png"> 19 <link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png"> 20 <link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png"> 21 <link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png"> 22 <link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png"> 23 <link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png"> 24 <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png"> 25 <link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32"> 26 <link rel="icon" type="image/png" href="/android-chrome-192x192.png" sizes="192x192"> 27 <link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96"> 28 <link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16"> 29 <link rel="manifest" href="/manifest.json"> 30 <meta name="msapplication-TileColor" content="#ffd500"> 31 <meta name="msapplication-TileImage" content="/mstile-144x144.png"> 32 <meta name="theme-color" content="#ffffff"> 33 <meta name="google-site-verification" content="EFUVZKz_7l3iqwRq3hEEAU8N18sbm7s1kJy9t21XjFY" /> 34 <link rel="stylesheet" media="print" href="/Files/Templates/Designs/EasyLaser2019/assets/css/easylaser-print.min.css?v=1.1"> 35 <link href="https://cdnjs.cloudflare.com/ajax/libs/slim-select/1.23.0/slimselect.min.css" rel="stylesheet"></link> 36 <link rel="stylesheet" href="/Files/Templates/Designs/EasyLaser2019/assets/css/easylaser.min.css?v=2.11"> 37 38 @RenderSnippet("OGMetaTags") 39 @Renderer.RenderPartial("/master/partials/opengraph.cshtml", this.Model) 40 41 @{ 42 var renderTitleFromSnippet = Convert.ToBoolean(Pageview.Page.PropertyItem["Render_Page_TitleFrom_Snippet"]); 43 44 if (renderTitleFromSnippet) 45 { 46 <title>@RenderSnippet("PageTitle") | Easy-Laser</title> 47 } 48 else 49 { 50 <title>@Model.Title | Easy-Laser</title> 51 } 52 } 53 54 @HrefLangTags.Generate() 55 @Model.Area.Item.GetValue("Metataggar") 56 @Model.Area.Item.GetValue("Analytics_Script") 57 58 <style> 59 @{ 60 var isDesktop = Dynamicweb.Frontend.PageView.Current().Device == DeviceType.Desktop; 61 62 if (!isDesktop) 63 { 64 <text> 65 .btn { 66 padding-top: 11px!important; 67 } 68 69 </text> 70 } 71 } 72 </style> 73 </head> 74 <body> 75 @Model.Area.Item.GetValue("Analytics_Script_Body") 76 <noscript> 77 <div>Javascript must be enabled for the correct page display</div> 78 </noscript> 79 80 <header class="container-fluid"> 81 @Renderer.RenderPartial("/master/partials/header.cshtml", this.Model) 82 </header> 83 84 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 85 86 87 @{ 88 var pageBgColor = Model.PropertyItem.GetString("Background_Color"); 89 var renderBreadCrumb = Model.PropertyItem.GetBoolean("Render_Breadcrumb"); 90 } 91 92 <div class="container-fluid"> 93 @Model.Placeholder("headercontent", "Page Header", "items-allowed:Header") 94 </div> 95 <div class="container-fluid" style="background-color: @pageBgColor"> 96 @if (renderBreadCrumb) 97 { 98 <div class="container u-mt-85"> 99 <div class="grid"> 100 <div class="col-auto"> 101 @RenderNavigation(new 102 { 103 StartLevel = 1, 104 EndLevel = 3, 105 Expandmode = "PathOnly", 106 Template = "Breadcrumb.xslt" 107 }) 108 </div> 109 110 </div> 111 </div> 112 } 113 114 @Model.Placeholder("pagecontent", "Page Content", "items-allowed:Content,TrainingItem") 115 116 </div> 117 <div style="display: none"> 118 @Model.Placeholder("hiddenpagecontent", "Hidden Content") 119 </div> 120 121 <footer class="flex-footer"> 122 @Renderer.RenderPartial("/master/partials/newsletter.cshtml", this.Model) 123 @Renderer.RenderPartial("/master/partials/footer.cshtml", this.Model) 124 </footer> 125 <script src="https://code.jquery.com/jquery-3.4.1.min.js" 126 integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" 127 crossorigin="anonymous"></script> 128 <script crossorigin="anonymous" src="https://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script> 129 <script defer src="https://cdnjs.cloudflare.com/ajax/libs/slim-select/1.23.0/slimselect.min.js"></script> 130 <script src="/Files/Templates/Designs/EasyLaser2019/assets/js/public/easylaser.min.js?v=1.79" type="text/javascript"></script> 131 @Model.Area.Item.GetString("Item.Area.OtherScripts.Value") 132 133 </body> 134 </html>