Gratis verzending vanaf €70

Gratis verzending vanaf €70

MENU
0
Exception in template (Designs/Robens/Paragraph/HeroRibbonItem.cshtml): System.NullReferenceException: Object reference not set to an instance of an object.
   at OaseOutdoors.Services.ImageService.ImageService.AddImage() in C:\projects\oase\src\Services\ImageService\ImageService.cs:line 93
   at OaseOutdoors.Services.ImageService.ImageService.Begin(String imageFile) in C:\projects\oase\src\Services\ImageService\ImageService.cs:line 25
   at OaseOutdoors.Components.Shared.Paragraphs.HeroRibbon.ModelBuilders.HeroRibbonViewModelBuilder.GetViewModel(ParagraphViewModel entity) in C:\projects\oase\src\Components\Shared\Paragraphs\HeroRibbon\ModelBuilders\HeroRibbonModelBuilder.cs:line 29
   at CompiledRazorTemplates.Dynamic.ceffbffffd.Execute()
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context) in c:\Users\abbottm\Documents\GitHub\RazorEngine\src\Core\RazorEngine.Core\Templating\TemplateBase.cs:line 126
   at RazorEngine.Templating.TemplateService.Run(ITemplate template, DynamicViewBag viewBag) in c:\Users\abbottm\Documents\GitHub\RazorEngine\src\Core\RazorEngine.Core\Templating\TemplateService.cs:line 608
   at RazorEngine.Templating.TemplateService.Parse(String razorTemplate, Object model, DynamicViewBag viewBag, String cacheName) in c:\Users\abbottm\Documents\GitHub\RazorEngine\src\Core\RazorEngine.Core\Templating\TemplateService.cs:line 439
   at RazorEngine.Razor.Parse[T](String razorTemplate, T model, DynamicViewBag viewBag, String cacheName) in c:\Users\abbottm\Documents\GitHub\RazorEngine\src\Core\RazorEngine.Core\Razor.cs:line 290
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()
@using Dynamicweb.Extensibility; @using Dynamicweb.Frontend; @using Dynamicweb.Rendering; @using OaseOutdoors.Components.Shared.Paragraphs.HeroRibbon.ModelBuilders @using OaseOutdoors.Services.ImageService.Enums @using OaseOutdoors.Services.StaticResourceService.Initialization @inherits ViewModelTemplate<ParagraphViewModel> @{ var viewModelService = new HeroRibbonViewModelBuilder(); var staticResourceService = ServiceLocator.Current.GetStaticResourceService(); var viewModel = viewModelService.GetViewModel(Model); var className = ""; var backgroundImage = ""; } @if (viewModel.Image != null) { className += " hero--has-image"; backgroundImage = " " + "data-src-xxs='" + @viewModel.Image.SetWidth(940).SetHeight(400).SetCrop(CropType.Center).SetCompression(50).SetAlternativeImage().GetCrop() + "'" + "data-src-xs='" + @viewModel.Image.SetWidth(1514).SetHeight(600).SetCrop(CropType.Center).SetCompression(50).SetAlternativeImage().GetCrop() + "'" + "data-src-sm='" + @viewModel.Image.SetWidth(1962).SetHeight(850).SetCrop(CropType.Center).SetCompression(50).SetAlternativeImage().GetCrop() + "'" + "data-src-md='" + @viewModel.Image.SetWidth(1142).SetHeight(790).SetCrop(CropType.Center).SetCompression(70).SetAlternativeImage().GetCrop() + "'" + "data-src-lg='" + @viewModel.Image.SetWidth(1462).SetHeight(790).SetCrop(CropType.Center).SetCompression(70).SetAlternativeImage().GetCrop() + "'" + "data-src-xl='" + @viewModel.Image.SetWidth(1762).SetHeight(790).SetCrop(CropType.Center).SetCompression(70).SetAlternativeImage().GetCrop() + "'" + "data-src-xxl='" + @viewModel.Image.SetWidth(2483).SetHeight(790).SetCrop(CropType.Center).SetCompression(70).SetAlternativeImage().GetCrop() + "'"; } <section class="ribbon hero"> <div class="hero__content container-fluid lazy-bg@(className)"@(backgroundImage)> <div class="container"> @if (!string.IsNullOrEmpty(viewModel.BodyText)) { <div class="hero__text">@viewModel.BodyText</div> } @if (!string.IsNullOrEmpty(viewModel.CallToActionLink)) { <div class="hero__cta"> <a href="@viewModel.CallToActionLink" class="btn btn--big btn--filled btn--bg"><span class="btn__text">@viewModel.CallToActionLinkTitle</span></a> </div> } </div> </div> </section>
Exception in template (Designs/Robens/Paragraph/RBTwoImagesMediaRibbonItem.cshtml): System.NullReferenceException: Object reference not set to an instance of an object.
   at OaseOutdoors.Services.ImageService.ImageService.AddImage() in C:\projects\oase\src\Services\ImageService\ImageService.cs:line 93
   at OaseOutdoors.Services.ImageService.ImageService.Begin(String imageFile) in C:\projects\oase\src\Services\ImageService\ImageService.cs:line 25
   at OaseOutdoors.Components.Robens.Paragraphs.RBTwoImagesMediaRibbon.ModelBuilders.RBTwoImagesMediaRibbonViewModelBuilder.GetViewModel(ParagraphViewModel entity) in C:\projects\oase\src\Components\Robens\Paragraphs\RBTwoImagesMediaRibbon\ModelBuilders\RBTwoImagesMediaRibbonModelBuilder.cs:line 24
   at CompiledRazorTemplates.Dynamic.fcffbededef.Execute()
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context) in c:\Users\abbottm\Documents\GitHub\RazorEngine\src\Core\RazorEngine.Core\Templating\TemplateBase.cs:line 126
   at RazorEngine.Templating.TemplateService.Run(ITemplate template, DynamicViewBag viewBag) in c:\Users\abbottm\Documents\GitHub\RazorEngine\src\Core\RazorEngine.Core\Templating\TemplateService.cs:line 608
   at RazorEngine.Templating.TemplateService.Parse(String razorTemplate, Object model, DynamicViewBag viewBag, String cacheName) in c:\Users\abbottm\Documents\GitHub\RazorEngine\src\Core\RazorEngine.Core\Templating\TemplateService.cs:line 439
   at RazorEngine.Razor.Parse[T](String razorTemplate, T model, DynamicViewBag viewBag, String cacheName) in c:\Users\abbottm\Documents\GitHub\RazorEngine\src\Core\RazorEngine.Core\Razor.cs:line 290
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()
@using Dynamicweb.Extensibility; @using Dynamicweb.Frontend; @using Dynamicweb.Rendering; @using OaseOutdoors.Components.Robens.Paragraphs.RBTwoImagesMediaRibbon.ModelBuilders @using OaseOutdoors.Services.ImageService.Enums @using OaseOutdoors.Services.StaticResourceService.Initialization @using OaseOutdoors.Components.Robens.Paragraphs.RBTwoImagesMediaRibbon.Models @inherits ViewModelTemplate<ParagraphViewModel> @{ var viewModelService = new RBTwoImagesMediaRibbonViewModelBuilder(); var staticResourceService = ServiceLocator.Current.GetStaticResourceService(); var viewModel = viewModelService.GetViewModel(Model); } <section class="two-images-media ribbon container-ribbon"> <div class="container"> <div class="two-images-media__container"> @if (!string.IsNullOrEmpty(viewModel.Headline) && !string.IsNullOrEmpty(viewModel.BodyText)) { <article class="two-images-inro"> <div class="two-images-intro__text"> @if (!string.IsNullOrEmpty(viewModel.Headline)) { <div> <h2 class="box-heading">@viewModel.Headline</h2> </div> } @if (!string.IsNullOrEmpty(viewModel.BodyText)) { <div class="body-text"> @viewModel.BodyText </div> } </div> </article> } <div> <article class="two-images-item @((viewModel.ContentDirection == "left") ? "two-images-item--first" : "")"> @if (!string.IsNullOrEmpty(viewModel.ContentHeadline) && !string.IsNullOrEmpty(viewModel.ContentBodyText) && viewModel.ContentDirection == "left") { <div class="two-images-item__text"> <div class="lazy two-images-item__text-bg-image" data-src-sm="@viewModel.Box1Image.SetWidth(800).SetCrop(CropType.KeepAspectRatio).SetCompression(80).GetCrop()"> </div> <div class="two-images-item__text-color two-images-item__text-color--@viewModel.ContentBackgroundColor"> @if (!string.IsNullOrEmpty(viewModel.ContentHeadline)) { <div> <h3 class="box-heading">@viewModel.ContentHeadline</h3> </div> } @if (!string.IsNullOrEmpty(viewModel.ContentBodyText)) { <div class="body-text"> @viewModel.ContentBodyText </div> } @if (!string.IsNullOrEmpty(viewModel.ContentLink) && !string.IsNullOrEmpty(viewModel.ContentLinkTitle)) { <div class="btn-wrap"> <a href="@viewModel.ContentLink" class="btn"> <span class="btn__text">@viewModel.ContentLinkTitle</span> </a> </div> } </div> </div> } else { <div class="two-images-item__image"> @if (!string.IsNullOrWhiteSpace(viewModel.Box1ImageLink)) { <a href="@viewModel.Box1ImageLink"> <img src="@viewModel.Box1Image.SetWidth(800).SetCrop(CropType.KeepAspectRatio).SetCompression(80).GetCrop()" itemprop="image" alt=""> </a> } else { <img src="@viewModel.Box1Image.SetWidth(800).SetCrop(CropType.KeepAspectRatio).SetCompression(80).GetCrop()" itemprop="image" alt=""> } </div> } </article> <article class="two-images-item @((viewModel.ContentDirection == "middle") ? "two-images-item--first" : "")"> @if (!string.IsNullOrEmpty(viewModel.ContentHeadline) && !string.IsNullOrEmpty(viewModel.ContentBodyText) && viewModel.ContentDirection == "middle") { <div class="two-images-item__text"> <div class="lazy two-images-item__text-bg-image" data-src-sm="@viewModel.Box2Image.SetWidth(800).SetCrop(CropType.KeepAspectRatio).SetCompression(80).GetCrop()"> </div> <div class="two-images-item__text-color two-images-item__text-color--@viewModel.ContentBackgroundColor"> @if (!string.IsNullOrEmpty(viewModel.ContentHeadline)) { <div> <h3 class="box-heading">@viewModel.ContentHeadline</h3> </div> } @if (!string.IsNullOrEmpty(viewModel.ContentBodyText)) { <div class="body-text"> @viewModel.ContentBodyText </div> } @if (!string.IsNullOrEmpty(viewModel.ContentLink) && !string.IsNullOrEmpty(viewModel.ContentLinkTitle)) { <div class="btn-wrap"> <a href="@viewModel.ContentLink" class="btn"> <span class="btn__text">@viewModel.ContentLinkTitle</span> </a> </div> } </div> </div> } else { <div class="two-images-item__image"> @if (!string.IsNullOrWhiteSpace(viewModel.Box2ImageLink)) { <a href="@viewModel.Box2ImageLink"> <img src="@viewModel.Box2Image.SetWidth(800).SetCrop(CropType.KeepAspectRatio).SetCompression(80).GetCrop()" itemprop="image" alt=""> </a> } else { <img src="@viewModel.Box2Image.SetWidth(800).SetCrop(CropType.KeepAspectRatio).SetCompression(80).GetCrop()" itemprop="image" alt=""> } </div> } </article> <article class="two-images-item @((viewModel.ContentDirection == "right") ? "two-images-item--first" : "")"> @if (!string.IsNullOrEmpty(viewModel.ContentHeadline) && !string.IsNullOrEmpty(viewModel.ContentBodyText) && viewModel.ContentDirection == "right") { <div class="two-images-item__text"> <div class="lazy two-images-item__text-bg-image" data-src-sm="@viewModel.Box3Image.SetWidth(800).SetCrop(CropType.KeepAspectRatio).SetCompression(80).GetCrop()"> </div> <div class="two-images-item__text-color two-images-item__text-color--@viewModel.ContentBackgroundColor"> @if (!string.IsNullOrEmpty(viewModel.ContentHeadline)) { <div> <h3 class="box-heading">@viewModel.ContentHeadline</h3> </div> } @if (!string.IsNullOrEmpty(viewModel.ContentBodyText)) { <div class="body-text"> @viewModel.ContentBodyText </div> } @if (!string.IsNullOrEmpty(viewModel.ContentLink) && !string.IsNullOrEmpty(viewModel.ContentLinkTitle)) { <div class="btn-wrap"> <a href="@viewModel.ContentLink" class="btn"> <span class="btn__text">@viewModel.ContentLinkTitle</span> </a> </div> } </div> </div> } else { <div class="two-images-item__image"> @if (!string.IsNullOrWhiteSpace(viewModel.Box3ImageLink)) { <a href="@viewModel.Box3ImageLink"> <img src="@viewModel.Box3Image.SetWidth(800).SetCrop(CropType.KeepAspectRatio).SetCompression(80).GetCrop()" itemprop="image" alt=""> </a> } else { <img src="@viewModel.Box3Image.SetWidth(800).SetCrop(CropType.KeepAspectRatio).SetCompression(80).GetCrop()" itemprop="image" alt=""> } </div> } </article> </div> </div> </div> </section>