On-call Service:+45 70 24 45 18

Customer Service +45 70 20 04 11

AVN logo
Swift
Error executing template "Designs/Swift-v2/Paragraph/CustomIcons.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.RazorEngine_45ebcac3e601443e8a75f22460c043ac.ExecuteAsync()
   at RazorEngine.Templating.TemplateBase.Run(ExecuteContext context, TextWriter reader)
   at RazorEngine.Templating.RazorEngineCore.RunTemplate(ICompiledTemplate template, TextWriter writer, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineService.Run(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.DynamicWrapperService.Run(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.Run(IRazorEngineService service, String name, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass23_0.<Run>b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at RazorEngine.Templating.RazorEngineServiceExtensions.Run(IRazorEngineService service, String name, Type modelType, Object model, DynamicViewBag viewBag)
   at Dynamicweb.Rendering.RazorTemplateRenderingProvider.Render(Template template)
   at Dynamicweb.Rendering.TemplateRenderingService.Render(Template template)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 2 @using Dynamicweb.Ecommerce.Products 3 @using Dynamicweb.Ecommerce.ProductCatalog 4 @using Dynamicweb.Frontend 5 6 @{ 7 ProductViewModel product = null; 8 if (Dynamicweb.Context.Current.Items.Contains("ProductDetails")) 9 { 10 product = (ProductViewModel)Dynamicweb.Context.Current.Items["ProductDetails"]; 11 } 12 else if (Pageview.Page.Item["DummyProduct"] != null && Pageview.IsVisualEditorMode) 13 { 14 var pageViewModel = Dynamicweb.Frontend.ContentViewModelFactory.CreatePageInfoViewModel(Pageview.Page); 15 ProductListViewModel productList = pageViewModel.Item.GetValue("DummyProduct") != null ? pageViewModel.Item.GetValue("DummyProduct") as ProductListViewModel : new ProductListViewModel(); 16 17 if (productList?.Products is object) 18 { 19 product = productList.Products[0]; 20 } 21 } 22 } 23 24 @if (product is object) 25 { 26 27 var iconDetails = Dynamicweb.Ecommerce.Services.Details.GetDetails(product.LanguageId, product.Id, product.VariantId, ""); 28 29 var groupedIcons = iconDetails 30 .Where(i => i.Value.Contains("AppIcons") || i.Value.Contains("PropIcons")) 31 .GroupBy(i => i.Value.Contains("AppIcons") ? "AppIcons" : "PropIcons") 32 .OrderBy(g => g.Key != "AppIcons"); 33 34 <div class="d-flex flex-column"> 35 @foreach(var iconGroup in groupedIcons) 36 { 37 <div class="d-flex flex-wrap mb-2"> 38 @foreach(var icon in iconGroup) 39 { 40 <img class="product-icon_image" src="@($"Admin/Public/GetImage.ashx?width=200&height=180&crop=5&Compression=75&DoNotUpscale=true&FillCanvas=true&image={icon.Value}")" /> 41 } 42 </div> 43 } 44 </div> 45 } 46 else if (Pageview.IsVisualEditorMode) 47 { 48 <div class="alert alert-dark m-0">@Translate("The details icons will be shown here, if any")</div> 49 }

Kundeservice +45 70 20 04 11

Error executing template "Designs/Swift-v2/Paragraph/CustomIcons.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.RazorEngine_45ebcac3e601443e8a75f22460c043ac.ExecuteAsync()
   at RazorEngine.Templating.TemplateBase.Run(ExecuteContext context, TextWriter reader)
   at RazorEngine.Templating.RazorEngineCore.RunTemplate(ICompiledTemplate template, TextWriter writer, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineService.Run(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.DynamicWrapperService.Run(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.Run(IRazorEngineService service, String name, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass23_0.<Run>b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at RazorEngine.Templating.RazorEngineServiceExtensions.Run(IRazorEngineService service, String name, Type modelType, Object model, DynamicViewBag viewBag)
   at Dynamicweb.Rendering.RazorTemplateRenderingProvider.Render(Template template)
   at Dynamicweb.Rendering.TemplateRenderingService.Render(Template template)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 2 @using Dynamicweb.Ecommerce.Products 3 @using Dynamicweb.Ecommerce.ProductCatalog 4 @using Dynamicweb.Frontend 5 6 @{ 7 ProductViewModel product = null; 8 if (Dynamicweb.Context.Current.Items.Contains("ProductDetails")) 9 { 10 product = (ProductViewModel)Dynamicweb.Context.Current.Items["ProductDetails"]; 11 } 12 else if (Pageview.Page.Item["DummyProduct"] != null && Pageview.IsVisualEditorMode) 13 { 14 var pageViewModel = Dynamicweb.Frontend.ContentViewModelFactory.CreatePageInfoViewModel(Pageview.Page); 15 ProductListViewModel productList = pageViewModel.Item.GetValue("DummyProduct") != null ? pageViewModel.Item.GetValue("DummyProduct") as ProductListViewModel : new ProductListViewModel(); 16 17 if (productList?.Products is object) 18 { 19 product = productList.Products[0]; 20 } 21 } 22 } 23 24 @if (product is object) 25 { 26 27 var iconDetails = Dynamicweb.Ecommerce.Services.Details.GetDetails(product.LanguageId, product.Id, product.VariantId, ""); 28 29 var groupedIcons = iconDetails 30 .Where(i => i.Value.Contains("AppIcons") || i.Value.Contains("PropIcons")) 31 .GroupBy(i => i.Value.Contains("AppIcons") ? "AppIcons" : "PropIcons") 32 .OrderBy(g => g.Key != "AppIcons"); 33 34 <div class="d-flex flex-column"> 35 @foreach(var iconGroup in groupedIcons) 36 { 37 <div class="d-flex flex-wrap mb-2"> 38 @foreach(var icon in iconGroup) 39 { 40 <img class="product-icon_image" src="@($"Admin/Public/GetImage.ashx?width=200&height=180&crop=5&Compression=75&DoNotUpscale=true&FillCanvas=true&image={icon.Value}")" /> 41 } 42 </div> 43 } 44 </div> 45 } 46 else if (Pageview.IsVisualEditorMode) 47 { 48 <div class="alert alert-dark m-0">@Translate("The details icons will be shown here, if any")</div> 49 }

AVN Teknik

Contakt us about tool solutions

Phone
+45 70 20 04 11

On-call Service
+45 70 24 45 18
Outside business hours

avn.teknik@avn.dk

Headquaters, Sales and Warehouse

Dalager 1, DK-2605 Brøndby

Sales Office and Service Workshop

Suensonsvej 10, DK-8600 Silkeborg
Lammefjordsvej 2, 6715 Esbjerg N

Opening Hours

Monday – Thursday 8:00 – 16:00
Friday 8:00 – 15:00

ACCOUNTING

+45 70 20 04 11

Suppliers are asked to send invoices and credit notes to:
invoice@avn.dk

Account statements, interest notes or reminders must be sent to:
teknikfaktura@avn.dk

WRITE TO US

If you have any questions, please feel free to write to us by:
avn.teknik@avn.dk

One of our staff members will contact you as soon as possible.

EMPLOYEES

Your AVN contacts – a strong group of experts – we know how

Henrik Sahl Bech

CEO

Management

hsb@avn.dk +45 43 24 55 34

Carsten Fischer

Chairman of the Board

Management

caf@avn.dk +45 70 20 04 11

Flemming Blauert

Product Manager | External Sales Engineer

Automation

fb@avn.dk +45 21 65 56 25

Stig Ramstad

Internal Sales Consultant

Automation

str@avn.dk +45 43 24 55 26

Søs Kempf Hansen

Assistant Internal Sales Support

Automation

skh@avn.dk +45 21 76 16 09

Martin Petersen

Sales Manager

Industrial Engineering

map@avn.dk +45 61 15 64 54

Jens K. Sørensen

Internal Sales Consultant

Industrial Engineering

jks@avn.dk +45 43 24 55 94

Kenneth Pedersen

External Sales Engineer | Central Jutland

Industrial Engineering

Denmark

kpe@avn.dk +45 23 71 48 99

Lars Thornvig

External Sales Engineer | Jutland and Funen

Industrial Engineering

Denmark

lth@avn.dk +45 40 10 76 66

Dennis Christensen

Teknisk salgsingeniør, Jylland

Industrial Engineering

dec@avn.dk +45 21 20 22 01

Carsten Bach Mikkelsen

Product Manager

Industrial Engineering

cbm@avn.dk +45 29 29 03 69

Stine Kam

Internal Sales Consultant

Industrial Engineering

sdk@avn.dk +45 29 29 03 57

Jacob Mikkelsen

Sales Manager

Production Technology

jam@avn.dk +45 30 85 94 92

Tony Løve

Product Manager | Technical Sales Engineer

Production Technology

tml@avn.dk +45 23 20 05 54

Kent Bertelsen

Technical Sales Engineer, Jutland

Production Technology

kbe@avn.dk +45 20 10 82 26

Christian Juhl Jensen

Internal Sales Consultant

Production Technology

cjj@avn.dk +45 61 15 64 02

Martin S. Sørensen

Business Area Manager | Internal Sales Consultant

Assembling Solutions

mss@avn.dk +45 21 70 80 44

Brian Ditlev Monrad

Project Manager / Chief Specialist

Assembling Solutions

bdm@avn.dk +45 30 57 44 75

Stig Ramstad

Internal Sales Consultant

Assembling Solutions

str@avn.dk +45 43 24 55 26

Ole Magnus Jensen

External Sales Engineer

Assembling Solutions

omj@avn.dk +45 23 74 82 21

Michael Sorvad

External Sales Engineer

Assembling Solutions

mis@avn.dk +45 20 32 20 04

Anders E. Haubjerg

External Sales Engineer

Assembling Solutions

aeh@avn.dk +45 23 30 72 29

Søs Kempf Hansen

Project Assistant / Internal Sales Support

Assembling Solutions

skh@avn.dk +45 21 76 16 09

Michael Justesen

Service Manager / Workshop Manager

Service Shop

mij@avn.dk +45 30 91 00 88

Kent Bodien

Service and Repair Technician

Service Shop

keb@avn.dk +45 20 55 33 44

Martin D. Svendsen

Service and Repair Technician

Service Shop

mds@avn.dk +45 24 84 50 82

Tobias Ilsøe Frandsen

Service and Repair Technician

Service Shop

tif@avn.dk +45 24 41 74 10

Dennis Wernblad

Purchasing Manager

Purchase

dew@avn.dk +45 43 24 55 67

Pernille Sloth Barnewitz

Purchasing Assistant

Purchase

psb@avn.dk +45 30 53 61 55

Jens K. Sørensen

Purchaser

Purchase

jks@avn.dk +45 43 24 55 94

Nicklas Pedersen

Warehouse Assistant

Warehouse

nip@avn.dk +45 21 48 61 99

Cecilie C. Larsen

Warehouse Assistant

Warehouse

ccl@avn.dk +45 23 26 55 64

Jeppe V. Olsen

Warehouse Assistant

Warehouse

jve@avn.dk +45 61 15 64 59

Martin D. Svendsen

Service and Repair Technician | Warehouse, Silkeborg dept.

Warehouse

mds@avn.dk +45 24 84 50 82