VOGELSANG - GERMANY'S INNOVATION LEADER
Cutting-edge technology for agricultural technology, biogas, industry, transportation and wastewater.
In 2023, we are bringing new products on the market. Products, that increase your production and create a better economy for either the agricultural or biogas production.
See more at:
https://www.vogelsang.info/en-uk/biogas-showroom
https://www.vogelsang.info/int/agricultural-showroom/
Error executing template "Designs/exhibition_site/ecom/product/partials/exhibitor-details/MCH365-products.cshtml" System.NullReferenceException: Object reference not set to an instance of an object. at Co3.MCH.Website.Frontend.Repositories.ProductRepository.GetProducts(Profile profile, MCH365ViewType viewType) in C:\Data\Development\git\mch-master\Co3.MCH.Website.Frontend\Repositories\BaseRepository.cs:line 523 at Co3.MCH.Website.Frontend.Services.MCH365.ProductService.GetProducts(Profile profile, MCH365ViewType viewType) in C:\Data\Development\git\mch-master\Co3.MCH.Website.Frontend\Services\MCH365\ProductService.cs:line 227 at Co3.MCH.Website.Frontend.Services.MCH365.ProductService.GetProductProducts(Profile profile, MCH365ViewType viewType) in C:\Data\Development\git\mch-master\Co3.MCH.Website.Frontend\Services\MCH365\ProductService.cs:line 174 at Co3.MCH.Website.Frontend.Models.Frontend.Ecommerce.PresentationProduct.get_Products() in C:\Data\Development\git\mch-master\Co3.MCH.Website.Frontend\Models\Frontend\Ecommerce\PresentationProduct.cs:line 83 at CompiledRazorTemplates.Dynamic.RazorEngine_c4e5e245038a47f982eb91a450d37187.Execute() in E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\ecom\product\partials\exhibitor-details\MCH365-products.cshtml:line 15 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.<RunCompile>b__0(TextWriter writer) at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter) at Dynamicweb.Rendering.RazorTemplateRenderingProvider.Render(Template template) at Dynamicweb.Rendering.TemplateRenderingService.Render(Template template) at Dynamicweb.Rendering.Template.RenderRazorTemplate()1 @inherits ViewModelTemplate<Co3.Espresso.Website.Models.FrontEnd.Ecommerce.EspressoProduct> 2 @using Co3.MCH.Website.Frontend.Models.Frontend 3 @using Dynamicweb.Rendering 4 @using Co3.MCH.Website.Frontend.Models.Frontend.Ecommerce 5 @using Dynamicweb.Frontend 6 7 @{ 8 ProfileProduct profileProduct = (ProfileProduct) Model; 9 bool hasPresentation = profileProduct.HasPresentation; 10 11 List<ProductProduct> profileProducts; 12 13 if (hasPresentation) 14 { 15 profileProducts = profileProduct.Presentation.Products.Products.Select(p => (ProductProduct) p).ToList(); 16 } 17 else 18 { 19 profileProducts = profileProduct.Products.Products.Select(p => (ProductProduct) p).ToList(); 20 } 21 22 23 } 24 25 <div class="col-12 mt-3 mch365-productlist-hide-profileinfo" id="products"> 26 <h2 class="mb-1">@Translate("MCH365 - Exhibitor details ProductsOnDisplay - Heading", "Produkter på") @profileProduct.Company.Name</h2> 27 <hr/> 28 <div class="row"> 29 30 @foreach (ProductProduct product in profileProducts.OrderBy(pp => pp.Sort)) 31 { 32 /*if(product.IsPresent) {*/ 33 <div class="p mb-3 p-imagetext p-imagetext-tb col-12 col-sm-4 col-md-4 col-lg-4 col-xl-3"> 34 @product.ListItemHtml 35 </div> 36 /*}*/ 37 } 38 </div> 39 </div> 40