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_ebee724eb80c432583c400b740d192fb.Execute() in D:\wwwroot\easylaser2019.se\Files\Templates\Designs\EasyLaser2019\_parsed\index.parsed.cshtml:line 39
   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.09"> 37 @RenderSnippet("OGMetaTags") 38 @{ 39 var renderTitleFromSnippet = Convert.ToBoolean( Pageview.Page.PropertyItem["Render_Page_TitleFrom_Snippet"]) ; 40 41 if (renderTitleFromSnippet) 42 { 43 <title>@RenderSnippet("PageTitle") | Easy-Laser</title> 44 } 45 else 46 { 47 <title>@Model.Title | Easy-Laser</title> 48 } 49 } 50 51 @HrefLangTags.Generate() 52 @Model.Area.Item.GetValue("Metataggar") 53 @Model.Area.Item.GetValue("Analytics_Script") 54 55 <style> 56 @{ 57 var isDesktop = Dynamicweb.Frontend.PageView.Current().Device == DeviceType.Desktop; 58 59 if (!isDesktop) 60 { 61 <text> 62 .btn { 63 padding-top: 11px!important; 64 } 65 66 </text> 67 } 68 } 69 </style> 70 </head> 71 <body> 72 @Model.Area.Item.GetValue("Analytics_Script_Body") 73 <noscript> 74 <div>Javascript must be enabled for the correct page display</div> 75 </noscript> 76 77 <header class="container-fluid"> 78 @Renderer.RenderPartial("/master/partials/header.cshtml", this.Model) 79 </header> 80 81 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 82 83 84 @{ 85 var pageBgColor = Model.PropertyItem.GetString("Background_Color"); 86 var renderBreadCrumb = Model.PropertyItem.GetBoolean("Render_Breadcrumb"); 87 } 88 89 <div class="container-fluid"> 90 @Model.Placeholder("headercontent", "Page Header", "items-allowed:Header") 91 </div> 92 <div class="container-fluid" style="background-color: @pageBgColor"> 93 @if (renderBreadCrumb) 94 { 95 <div class="container u-mt-85"> 96 <div class="grid"> 97 <div class="col-auto"> 98 @RenderNavigation(new 99 { 100 StartLevel = 1, 101 EndLevel = 3, 102 Expandmode = "PathOnly", 103 Template = "Breadcrumb.xslt" 104 }) 105 </div> 106 107 </div> 108 </div> 109 } 110 111 @Model.Placeholder("pagecontent", "Page Content", "items-allowed:Content,TrainingItem") 112 113 </div> 114 <div style="display: none"> 115 @Model.Placeholder("hiddenpagecontent", "Hidden Content") 116 </div> 117 118 <footer class="flex-footer"> 119 @Renderer.RenderPartial("/master/partials/newsletter.cshtml", this.Model) 120 @Renderer.RenderPartial("/master/partials/footer.cshtml", this.Model) 121 </footer> 122 <script src="https://code.jquery.com/jquery-3.4.1.min.js" 123 integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" 124 crossorigin="anonymous"></script> 125 <script crossorigin="anonymous" src="https://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script> 126 <script defer src="https://cdnjs.cloudflare.com/ajax/libs/slim-select/1.23.0/slimselect.min.js"></script> 127 <script src="/Files/Templates/Designs/EasyLaser2019/assets/js/public/easylaser.min.js?v=1.75" type="text/javascript"></script> 128 @Model.Area.Item.GetString("Item.Area.OtherScripts.Value") 129 130 </body> 131 </html>