Error executing template "Designs/sevenseas/Paragraph/Banner.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
   at Co3.Espresso.Base.Extensions.ItemExtensions.GetValue[T](Item item, String key) in C:\Projects\espresso-solution\Co3.Espresso.Utilities\Extensions\ItemExtensions.cs:line 21
   at Co3.Espresso.Website.Models.FrontEnd.Elements.EspressoText..ctor(Item paragraphItem) in C:\Projects\espresso-solution\Co3.Espresso.Website\Models\FrontEnd\Elements\EspressoText.cs:line 52
   at Co3.Espresso.Website.Models.FrontEnd.Paragraphs.ImageTextModel..ctor(Paragraph paragraph, Item dynamicwebItem) in C:\Projects\espresso-solution\Co3.Espresso.Website\Models\FrontEnd\Paragraphs\ImageTextModel.cs:line 25
   at Co3.Espresso.Website.Models.FrontEnd.Paragraphs.BannerModel..ctor(Paragraph paragraph, Item dynamicwebItem) in C:\Projects\espresso-solution\Co3.Espresso.Website\Models\FrontEnd\Paragraphs\BannerModel.cs:line 23
   at Co3.Espresso.Website.TemplateBases.Paragraphs.Banner..ctor() in C:\Projects\espresso-solution\Co3.Espresso.Website\TemplateBases\Paragraphs\Banner.cs:line 20
   at CompiledRazorTemplates.Dynamic.RazorEngine_9e5218cd24fb4a84932f7aed1e6da720..ctor() in C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\RazorEngine_saxoobjd.wui\CompiledRazorTemplates.Dynamic.RazorEngine_9e5218cd24fb4a84932f7aed1e6da720.cs:line 0
   at lambda_method(Closure )
   at RazorEngine.Templating.RazorEngineCore.CreateTemplate(ICompiledTemplate template, Object model, DynamicViewBag viewbag)
   at RazorEngine.Templating.RazorEngineCore.RunTemplate(ICompiledTemplate template, TextWriter writer, Object model, DynamicViewBag viewBag)
   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 @inherits Co3.Espresso.Website.TemplateBases.Paragraphs.Banner 2 @{ 3 if ( Espresso.Item.ImageDisableGradientOverlay == "True" || Espresso.Text.Raw == "" ) { 4 Espresso.Container.ClassList.AddClasses("p-banner-gradient-disabled"); 5 } 6 if ( string.IsNullOrEmpty( Espresso.Item.PaddingTop ) == false && Espresso.Item.PaddingTop != "0" ) { 7 Espresso.Container.ClassList.AddClasses("p-t-" + Espresso.Item.PaddingTop); 8 } 9 if ( string.IsNullOrEmpty( Espresso.Item.PaddingBottom ) == false && Espresso.Item.PaddingBottom != "0" ) { 10 Espresso.Container.ClassList.AddClasses("p-b-" + Espresso.Item.PaddingBottom); 11 } 12 if( GetLoop("Item.AnimationImages").Any() == true ) { 13 Espresso.Image.Container.ClassList.RemoveClasses("p-img-container-parallax"); 14 Espresso.Image.Container.ClassList.AddClasses("p-banner-animation-image-container js-p-banner-animation-image-container"); 15 Espresso.Image.ClassList.AddClasses("p-banner-animation-image js-p-banner-animation-image"); 16 } 17 string iddImageUrl = Espresso.Image.URL; 18 string ambuImagePath = Espresso.Item.Image; 19 if( string.IsNullOrEmpty( iddImageUrl ) == false && ambuImagePath.EndsWith("svg") != true ) { 20 iddImageUrl = iddImageUrl + "&donotupscale=true"; 21 } 22 } 23 24 </div> 25 </div> 26 </div> 27 </div> 28 </section> 29 <section class="@Espresso.Container.ClassList e-section" id="@Espresso.Id"> 30 @if( Espresso.Image.URL != "" ) { 31 if( GetLoop("Item.AnimationImages").Any() == true ) { 32 <div class="@Espresso.Image.Container.ClassList"> 33 <div title="@Espresso.Image.AltText" class="@Espresso.Image.ClassList" data-src="@iddImageUrl"></div> 34 @foreach( LoopItem animationImage in GetLoop("Item.AnimationImages") ) { 35 string imageSrc = String.Format( "/admin/public/getimage.ashx?Crop={0}&Image={1}&Format=jpg&Width={2}&Height=&Quality={3}", animationImage.GetString("Item.AnimationImages.ImageCroppingAnchor"), animationImage.GetString("Item.AnimationImages.Image"), Espresso.Image.Width, animationImage.GetString("Item.AnimationImages.ImageQuality") ); 36 <div title="@Espresso.Image.AltText" class="@Espresso.Image.ClassList" data-src="@imageSrc"></div> 37 } 38 </div> 39 } 40 else{ 41 if( Espresso.ParallaxScrolling == true ) { 42 <div class="@Espresso.Image.Container.ClassList"> 43 <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="@Espresso.Image.AltText" class="@Espresso.Image.ClassList" data-src="@iddImageUrl"> 44 </div> 45 } else{ 46 <div class="@Espresso.Image.Container.ClassList" style="background-image:url(@iddImageUrl)" title="@Espresso.Image.AltText"></div> 47 } 48 } 49 if( Espresso.Item.ShowNextSectionLink == "True" ) { 50 <a href="#" class="p-banner-next-section-link js-p-banner-next-section-link"> 51 <i class="material-icons p-banner-next-section-link-icon">keyboard_arrow_down</i> 52 </a> 53 } 54 } 55 <div class="@Espresso.Wrapper.ClassList"> 56 <div class="container-fluid"> 57 <div class="@Espresso.Text.Container.ClassList"> 58 <div class="@Espresso.Text.Wrapper.ClassList"> 59 @Espresso.Text.Raw 60 </div> 61 </div> 62 </div> 63 </div> 64 </section> 65 66 <section class="e-section"> 67 <div class="container-fluid"> 68 <div class="row"> 69 <div class="@Espresso.ContentSection.ClassList"> 70 <div class="row"> 71
keyboard_arrow_up