Error loading product page.
Errors while compiling a Template.
Please try the following to solve the situation:
* If the problem is about missing/invalid references or multiple defines either try to load
the missing references manually (in the compiling appdomain!) or
Specify your references manually by providing your own IReferenceResolver implementation.
See https://antaris.github.io/RazorEngine/ReferenceResolver.html for details.
Currently all references have to be available as files!
* If you get 'class' does not contain a definition for 'member':
try another modelType (for example 'null' to make the model dynamic).
NOTE: You CANNOT use typeof(dynamic) to make the model dynamic!
Or try to use static instead of anonymous/dynamic types.
More details about the error:
- error: (57, 25) ) expected
- error: (57, 31) ; expected
- error: (57, 31) Invalid expression term ')'
- error: (57, 32) ; expected
- error: (57, 32) Invalid expression term ')'
- error: (57, 33) ; expected
- error: (62, 13) Invalid expression term 'else'
- error: (62, 17) ; expected
Temporary files of the compilation can be found in (please delete the folder): C:\Windows\TEMP\RazorEngine_rwqkxyl5.sow
The template we tried to compile is:
------------- START -----------
@{
bool mainProduct = Model.Base.EcommerceProduct.Extra3 == "has-variants";
string mainProductClass = "";
if (mainProduct) {
mainProductClass = "main-product";
}
}
@{
var discountClass = "";
if (@Model.Base.EcommerceProduct.SugPrice.NetValue.DecimalAutoVat() > @Model.Base.EcommerceProduct.Price.NetValue.DecimalAutoVat()) {
discountClass = "has-discount";
}
bool vatOff = System.Web.HttpContext.Current.Request.Cookies["VatOff"].Value == "true";
string vatText = "";
var retailPrice = "0";
decimal retailPriceDecimal = 0m;
if (discountClass != "has-discount") {
var dbProducts = Model.Base.ProductsDt().Select("ProductID = " + Model.Base.EcommerceProduct.ProductID);
if (dbProducts.Length > 0) {
var dbProduct = dbProducts[0];
retailPrice = dbProduct["RetailPrice"].ToString();
if (decimal.TryParse(
retailPrice.Replace(",", "."),
NumberStyles.Any,
CultureInfo.InvariantCulture,
out var parsed))
{
// Rund av til 2 desimaler
retailPriceDecimal = Math.Round(parsed, 2);
}
else
{
retailPriceDecimal = 0m; // fallback-verdi
}
}
}
var sugPrice = Model.Base.EcommerceProduct.SugPrice.Value.DecimalWithVat();
var netPrice = Model.Base.EcommerceProduct.Price.NetValue.DecimalWithVat();
if (vatOff) {
vatText = "eks. mva.";
sugPrice = Model.Base.EcommerceProduct.SugPrice.Value.DecimalWithoutVat();
netPrice = Model.Base.EcommerceProduct.Price.NetValue.DecimalWithoutVat();
}
}
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("default_gallery"))) {
} else {
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("default_featuredimage"))) {

} else {

}
}
@*@string.Format("{0:C}", sugPrice) @vatText*@
@*@string.Format("{0:C}", netPrice) @vatText*@
{insert:klarnacalculatemonth}
{content:default_ingress}
@if (Model.Base.SystemHasExtension(21)) {
// Advanced variants.
}
@if (Model.Base.EcommerceProduct.Extra3 != "has-variants" && Model.Base.EcommerceProduct.Extra7 != "1") {
} else if (Model.Base.EcommerceProduct.Extra7 == "1") {
Bestillingsvare
}
@if (Model.Base.SystemHasExtension(19) && false) {
}
@if (Model.Base.SystemHasExtension(23)) {
}
@if (!string.IsNullOrWhiteSpace(Model.Base.EcommerceProduct.BigDescription2)) {
- Produktbeskrivelse
}
- @Model.Base.Text("Spesifikasjoner")
- @Model.Base.Text("Anbefalt tilbehør")
- @Model.Base.Text("Reservedeler")
- @Model.Base.Text("Andre kjøpte også")
@if (!string.IsNullOrWhiteSpace(Model.Base.EcommerceProduct.BigDescription2)) {
@Raw(Model.Base.EcommerceProduct.BigDescription2)
}
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrProdusent"))) {
Produsent: @Model.Base.GetValue("ZUsrProdusent") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrLengde"))) { Lengde: @Model.Base.GetValue("ZUsrLengde") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrWingspan"))) { Vingespenn: @Model.Base.GetValue("ZUsrWingspan") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrLength"))) { Length: @Model.Base.GetValue("ZUsrLength") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrWingArea"))) { Vingeareal: @Model.Base.GetValue("ZUsrWingArea") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrRotordiameter"))) { Rotor diameter: @Model.Base.GetValue("ZUsrRotordiameter") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrRotorbladelength"))) { Rotor bladlengde: @Model.Base.GetValue("ZUsrRotorbladelength") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrTailrotordiameter"))) { Halerotor diameter: @Model.Base.GetValue("ZUsrTailrotordiameter") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrFlyingweight"))) { Flyvekt : @Model.Base.GetValue("ZUsrFlyingweight") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrVolt"))) { Spenning (Volt): @Model.Base.GetValue("ZUsrVolt") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrAntallCeller"))) { Antall Celler: @Model.Base.GetValue("ZUsrAntallCeller") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrAmpere"))) { Ampere: @Model.Base.GetValue("ZUsrAmpere") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrHeight"))) { Høyde: @Model.Base.GetValue("ZUsrHeight") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrAh"))) { Ah: @Model.Base.GetValue("ZUsrAh") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrSize"))) { Størrelse: @Model.Base.GetValue("ZUsrSize") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrBore"))) { Kjede: @Model.Base.GetValue("ZUsrBore") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrStroke"))) { Slagvolum: @Model.Base.GetValue("ZUsrStroke") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrOutput"))) { Output: @Model.Base.GetValue("ZUsrOutput") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrRpmRange"))) { Rpm rekkevidde: @Model.Base.GetValue("ZUsrRpmRange") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrWidth"))) { Bredde: @Model.Base.GetValue("ZUsrWidth") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrWheelbase"))) { Hjulbase: @Model.Base.GetValue("ZUsrWheelbase") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrInnerdiameter"))) { Indre diameter: @Model.Base.GetValue("ZUsrInnerdiameter") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrOuterdiameter"))) { Ytre diameter: @Model.Base.GetValue("ZUsrOuterdiameter") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrColor"))) { Farge: @Model.Base.GetValue("ZUsrColor") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrVolume"))) { Volum: @Model.Base.GetValue("ZUsrVolume") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrAditionalinfoen"))) { Ekstrainformasjon: @Model.Base.GetValue("ZUsrAditionalinfoen") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrFlytype"))) { Flytype: @Model.Base.GetValue("ZUsrFlytype") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrModelltype"))) { Modelltype: @Model.Base.GetValue("ZUsrModelltype") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrWingload"))) { Vingekapasitet: @Model.Base.GetValue("ZUsrWingload") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrOperation"))) { Operasjon: @Model.Base.GetValue("ZUsrOperation") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrOperationtype"))) { Operasjonstype: @Model.Base.GetValue("ZUsrOperationtype") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrScala"))) { Skala: @Model.Base.GetValue("ZUsrScala") }
@if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrBakkeklaring"))) { Bakkeklaring: @Model.Base.GetValue("ZUsrBakkeklaring") }
@Raw(Model.Base.GetSnippet(217, new { Title = Model.Base.Text("Relaterte produkter"), Model.Base.EcommerceProduct.PostID, Model.Base, RelatedType = "Related", Slider = false, Class = "clearfix product-list-standard product-list responsive", TitleClass = "small-heading", Col = 4, MobileCol = 1, InfiniteLoad = false, CategoryID = -1, Limit = 10, Id = "RelatedProducts", ShowLoader = false }))
@Raw(Model.Base.GetSnippet(217, new { Title = Model.Base.Text("Alternative produkter"), Model.Base.EcommerceProduct.PostID, Model.Base, RelatedType = "Alternative", Slider = false, Class = "clearfix product-list-standard product-list responsive", TitleClass = "small-heading", Col = 4, MobileCol = 1, InfiniteLoad = false, CategoryID = -1, Limit = 10, Id = "AlternativeProducts", ShowLoader = false }))
@if (Model.Base.SystemHasExtension(23)) {
}
------------- END -----------
The generated source code is:
------------- START -----------
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
namespace CompiledRazorTemplates.Dynamic {
using System;
using System.Collections.Generic;
using System.Linq;
[RazorEngine.Compilation.HasDynamicModelAttribute()]
public class RazorEngine_d08aef6ac4284994b5d90a4a9312ab36 : RazorEngine.Templating.TemplateBase
{
#line hidden
public RazorEngine_d08aef6ac4284994b5d90a4a9312ab36() {
}
public override void Execute() {
bool mainProduct = Model.Base.EcommerceProduct.Extra3 == "has-variants";
string mainProductClass = "";
if (mainProduct) {
mainProductClass = "main-product";
}
WriteLiteral("\n\n \n");
var discountClass = "";
if (@Model.Base.EcommerceProduct.SugPrice.NetValue.DecimalAutoVat() > @Model.Base.EcommerceProduct.Price.NetValue.DecimalAutoVat()) {
discountClass = "has-discount";
}
bool vatOff = System.Web.HttpContext.Current.Request.Cookies["VatOff"].Value == "true";
string vatText = "";
var retailPrice = "0";
decimal retailPriceDecimal = 0m;
if (discountClass != "has-discount") {
var dbProducts = Model.Base.ProductsDt().Select("ProductID = " + Model.Base.EcommerceProduct.ProductID);
if (dbProducts.Length > 0) {
var dbProduct = dbProducts[0];
retailPrice = dbProduct["RetailPrice"].ToString();
if (decimal.TryParse(
retailPrice.Replace(",", "."),
NumberStyles.Any,
CultureInfo.InvariantCulture,
out var parsed))
{
// Rund av til 2 desimaler
retailPriceDecimal = Math.Round(parsed, 2);
}
else
{
retailPriceDecimal = 0m; // fallback-verdi
}
}
}
var sugPrice = Model.Base.EcommerceProduct.SugPrice.Value.DecimalWithVat();
var netPrice = Model.Base.EcommerceProduct.Price.NetValue.DecimalWithVat();
if (vatOff) {
vatText = "eks. mva.";
sugPrice = Model.Base.EcommerceProduct.SugPrice.Value.DecimalWithoutVat();
netPrice = Model.Base.EcommerceProduct.Price.NetValue.DecimalWithoutVat();
}
WriteLiteral("\n \n\n\n\n
(mainProductClass
, 1884), false)
, Tuple.Create(Tuple.Create(" ", 1901), Tuple.Create(discountClass
, 1902), false)
);
WriteAttribute("price", Tuple.Create(" price=\"", 1917), Tuple.Create("\"", 1934)
, Tuple.Create(Tuple.Create("", 1925), Tuple.Create(netPrice
, 1925), false)
);
WriteAttribute("retailPrice", Tuple.Create(" retailPrice=\"", 1935), Tuple.Create("\"", 1968)
, Tuple.Create(Tuple.Create("", 1949), Tuple.Create(retailPriceDecimal
, 1949), false)
);
WriteLiteral(" >\n \n");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("default_gallery"))) {
WriteLiteral(" \n");
WriteLiteral("
(Model.Base.EcommerceProduct.PostID
, 2221), false)
, Tuple.Create(Tuple.Create("", 2256), Tuple.Create(",", 2256), true)
, Tuple.Create(Tuple.Create(" ", 2257), Tuple.Create("\'nb-NO\',", 2258), true)
, Tuple.Create(Tuple.Create(" ", 2266), Tuple.Create("\'default_gallery\'", 2267), true)
);
WriteLiteral(" />\n");
WriteLiteral(" \n");
WriteLiteral(" (Model.Base.EcommerceProduct.PostID
, 2411), false)
, Tuple.Create(Tuple.Create("", 2446), Tuple.Create(",", 2446), true)
, Tuple.Create(Tuple.Create(" ", 2447), Tuple.Create("\'nb-NO\',", 2448), true)
, Tuple.Create(Tuple.Create(" ", 2456), Tuple.Create("\'default_gallery\'", 2457), true)
);
WriteLiteral(" />\n");
} else {
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("default_featuredimage"))) {
WriteLiteral("
(Model.Base.GetValue("default_featuredimage")
, 2604), false)
);
WriteLiteral(" class=\"single-prod-image xproduct-item-img\"");
WriteAttribute("alt", Tuple.Create(" alt=\"", 2694), Tuple.Create("\"", 2740)
, Tuple.Create(Tuple.Create("", 2700), Tuple.Create(Model.Base.EcommerceProduct.Description
, 2700), false)
);
WriteLiteral(" />\n");
} else {
WriteLiteral("
(Model.Base.EcommerceProduct.Description
, 2870), false)
);
WriteLiteral(" />\n");
}
}
WriteLiteral("\n \n \n
\n\n
(Model.Base.EcommerceProduct.PostID
, 3954), false)
);
WriteLiteral(">\n \n \t\t\n\n \n
\n ");
WriteLiteral("\n \n \n
\n \n
\n ");
WriteLiteral("\n \n \n \t\t
\n \t\n " +
" \n \n
\n {insert:klarnacalculatemonth}\n
\n \n
(Model.Base.EcommerceProduct.ProductID
, 5107), false)
);
WriteLiteral(">\n
(Model.Base.EcommerceProduct.ProductID
, 5229), false)
);
WriteLiteral(">\n
{content:default_ingress}
\n\n
\n
\n\n");
if (Model.Base.SystemHasExtension(21)) {
// Advanced variants.
WriteLiteral(" \t
\n");
}
WriteLiteral("\n\n\n\n\n \n
\n \n");
if (Model.Base.EcommerceProduct.Extra3 != "has-variants" && Model.Base.EcommerceProduct.Extra7 != "1") {
WriteLiteral("
(Model.Base.EcommerceProduct.ProductID
, 5784), false)
);
WriteLiteral(" :quantitypack=\"0\"");
WriteLiteral(" :always-add=\"true\"");
WriteLiteral(" :show-quantity=\"true\"");
WriteAttribute("button_text", Tuple.Create(" button_text=\"", 5882), Tuple.Create("\"", 5920)
, Tuple.Create(Tuple.Create("", 5896), Tuple.Create(Model.Base.Text("Kjøp")
, 5896), false)
);
WriteLiteral(">\n");
} else if (Model.Base.EcommerceProduct.Extra7 == "1") {
WriteLiteral(" \t
Bestillingsvare\n");
}
WriteLiteral("\n");
if (Model.Base.SystemHasExtension(19) && false) {
WriteLiteral(" \t\n");
WriteLiteral("
\n");
WriteLiteral(" \n");
}
WriteLiteral(" ");
if (Model.Base.SystemHasExtension(23)) {
WriteLiteral(" \n");
WriteLiteral(" \n");
WriteLiteral(" \n");
WriteLiteral(" \n");
WriteLiteral("
\n");
WriteLiteral(" \n");
}
WriteLiteral("
\n
\n\n\n\n\n \n\n \n
\n \n \n \n
\n
\n
\n");
if (!string.IsNullOrWhiteSpace(Model.Base.EcommerceProduct.BigDescription2)) {
WriteLiteral(" - Produktbeskrivelse
\n");
}
WriteLiteral(" - ");
Write(Model.Base.Text("Spesifikasjoner"));
WriteLiteral("
\n - ");
Write(Model.Base.Text("Anbefalt tilbehør"));
WriteLiteral("
\n - ");
Write(Model.Base.Text("Reservedeler"));
WriteLiteral("
\n - 0\"");
WriteLiteral(">");
Write(Model.Base.Text("Andre kjøpte også"));
WriteLiteral("
\n
\n\n
\n");
if (!string.IsNullOrWhiteSpace(Model.Base.EcommerceProduct.BigDescription2)) {
WriteLiteral("
\n
");
Write(Raw(Model.Base.EcommerceProduct.BigDescription2));
WriteLiteral("
\n
\n");
}
WriteLiteral("\n\n\n\n
\n");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrProdusent"))) {
WriteLiteral("
Produsent: ");
Write(Model.Base.GetValue("ZUsrProdusent"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrLengde"))) {
WriteLiteral(" Lengde: ");
Write(Model.Base.GetValue("ZUsrLengde"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrWingspan"))) {
WriteLiteral(" Vingespenn: ");
Write(Model.Base.GetValue("ZUsrWingspan"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrLength"))) {
WriteLiteral(" Length: ");
Write(Model.Base.GetValue("ZUsrLength"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrWingArea"))) {
WriteLiteral(" Vingeareal: ");
Write(Model.Base.GetValue("ZUsrWingArea"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrRotordiameter"))) {
WriteLiteral(" Rotor diameter: ");
Write(Model.Base.GetValue("ZUsrRotordiameter"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrRotorbladelength"))) {
WriteLiteral(" Rotor bladlengde: ");
Write(Model.Base.GetValue("ZUsrRotorbladelength"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrTailrotordiameter"))) {
WriteLiteral(" Halerotor diameter: ");
Write(Model.Base.GetValue("ZUsrTailrotordiameter"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrFlyingweight"))) {
WriteLiteral(" Flyvekt : ");
Write(Model.Base.GetValue("ZUsrFlyingweight"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrVolt"))) {
WriteLiteral(" Spenning (Volt): ");
Write(Model.Base.GetValue("ZUsrVolt"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrAntallCeller"))) {
WriteLiteral(" Antall Celler: ");
Write(Model.Base.GetValue("ZUsrAntallCeller"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrAmpere"))) {
WriteLiteral(" Ampere: ");
Write(Model.Base.GetValue("ZUsrAmpere"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrHeight"))) {
WriteLiteral(" Høyde: ");
Write(Model.Base.GetValue("ZUsrHeight"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrAh"))) {
WriteLiteral(" Ah: ");
Write(Model.Base.GetValue("ZUsrAh"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrSize"))) {
WriteLiteral(" Størrelse: ");
Write(Model.Base.GetValue("ZUsrSize"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrBore"))) {
WriteLiteral(" Kjede: ");
Write(Model.Base.GetValue("ZUsrBore"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrStroke"))) {
WriteLiteral(" Slagvolum: ");
Write(Model.Base.GetValue("ZUsrStroke"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrOutput"))) {
WriteLiteral(" Output: ");
Write(Model.Base.GetValue("ZUsrOutput"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrRpmRange"))) {
WriteLiteral(" Rpm rekkevidde: ");
Write(Model.Base.GetValue("ZUsrRpmRange"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrWidth"))) {
WriteLiteral(" Bredde: ");
Write(Model.Base.GetValue("ZUsrWidth"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrWheelbase"))) {
WriteLiteral(" Hjulbase: ");
Write(Model.Base.GetValue("ZUsrWheelbase"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrInnerdiameter"))) {
WriteLiteral(" Indre diameter: ");
Write(Model.Base.GetValue("ZUsrInnerdiameter"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrOuterdiameter"))) {
WriteLiteral(" Ytre diameter: ");
Write(Model.Base.GetValue("ZUsrOuterdiameter"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrColor"))) {
WriteLiteral(" Farge: ");
Write(Model.Base.GetValue("ZUsrColor"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrVolume"))) {
WriteLiteral(" Volum: ");
Write(Model.Base.GetValue("ZUsrVolume"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrAditionalinfoen"))) {
WriteLiteral(" Ekstrainformasjon: ");
Write(Model.Base.GetValue("ZUsrAditionalinfoen"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrFlytype"))) {
WriteLiteral(" Flytype: ");
Write(Model.Base.GetValue("ZUsrFlytype"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrModelltype"))) {
WriteLiteral(" Modelltype: ");
Write(Model.Base.GetValue("ZUsrModelltype"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrWingload"))) {
WriteLiteral(" Vingekapasitet: ");
Write(Model.Base.GetValue("ZUsrWingload"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrOperation"))) {
WriteLiteral(" Operasjon: ");
Write(Model.Base.GetValue("ZUsrOperation"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrOperationtype"))) {
WriteLiteral(" Operasjonstype: ");
Write(Model.Base.GetValue("ZUsrOperationtype"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrScala"))) {
WriteLiteral(" Skala: ");
Write(Model.Base.GetValue("ZUsrScala"));
WriteLiteral(" ");
}
WriteLiteral(" ");
if (!string.IsNullOrWhiteSpace(Model.Base.GetValue("ZUsrBakkeklaring"))) {
WriteLiteral(" Bakkeklaring: ");
Write(Model.Base.GetValue("ZUsrBakkeklaring"));
WriteLiteral(" ");
}
WriteLiteral(" \n\n\n\n\n\n
\n \n");
WriteLiteral(" ");
Write(Raw(Model.Base.GetSnippet(217, new { Title = Model.Base.Text("Relaterte produkter"), Model.Base.EcommerceProduct.PostID, Model.Base, RelatedType = "Related", Slider = false, Class = "clearfix product-list-standard product-list responsive", TitleClass = "small-heading", Col = 4, MobileCol = 1, InfiniteLoad = false, CategoryID = -1, Limit = 10, Id = "RelatedProducts", ShowLoader = false })));
WriteLiteral("\n\n
\n\n
\n");
WriteLiteral(" ");
Write(Raw(Model.Base.GetSnippet(217, new { Title = Model.Base.Text("Alternative produkter"), Model.Base.EcommerceProduct.PostID, Model.Base, RelatedType = "Alternative", Slider = false, Class = "clearfix product-list-standard product-list responsive", TitleClass = "small-heading", Col = 4, MobileCol = 1, InfiniteLoad = false, CategoryID = -1, Limit = 10, Id = "AlternativeProducts", ShowLoader = false })));
WriteLiteral("\n
\n
0\"");
WriteLiteral(" class=\"product-pane others-bought\"");
WriteLiteral(">\n
(Model.Base.EcommerceProduct.ProductID
, 15119), false)
);
WriteLiteral(" templatelistid=\"220\"");
WriteLiteral(" posttemplateid=\"13\"");
WriteLiteral(" limit=\"10\"");
WriteLiteral(" />\n \n
\n
\n
\n
\n \n
\n\n");
if (Model.Base.SystemHasExtension(23)) {
WriteLiteral("\n");
WriteLiteral("\n");
WriteLiteral("\n");
WriteLiteral("\n");
WriteLiteral("\n");
WriteLiteral("\n");
WriteLiteral("\n");
WriteLiteral("\n");
WriteLiteral("\n");
}
WriteLiteral("\n
");
}
}
}
------------- END -----------
List of loaded Assemblies:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll
Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll
Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll
Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll
Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Build.Utilities.v4.0\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Utilities.v4.0.dll
Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Caching\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.Caching.dll
Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll
Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll
Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.JScript\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.JScript.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\App_global.asax.5lcowoii.dll
Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualBasic\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\b588a32d\0072fa7a_f747dc01\Vianett.Publishing.Web.dll
Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll
Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Mobile\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll
Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\4379e770\00a10a2c_466ada01\Microsoft.AspNet.TelemetryCorrelation.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\558ba008\00a10a2c_466ada01\Newtonsoft.Json.dll
Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll
Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\4badccc1\0072fa7a_f747dc01\Vianett.Publishing.BusinessFacade.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\b64ecebe\0072fa7a_f747dc01\Vianett.Publishing.DataAccess.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\d83d6337\00398b0a_ca6ad201\Vianett.Common.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\b1f20342\00398b0a_ca6ad201\log4net.dll
Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_64\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\System.Transactions.dll
Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\ead20328\00cc4eca_6900dc01\System.Diagnostics.DiagnosticSource.dll
Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.RegularExpressions\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.RegularExpressions.dll
Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Internals\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Internals.dll
Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll
Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\SMDiagnostics\v4.0_4.0.0.0__b77a5c561934e089\SMDiagnostics.dll
Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xaml.Hosting\v4.0_4.0.0.0__31bf3856ad364e35\System.Xaml.Hosting.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\229fe7ed\0072fa7a_f747dc01\Vianett.Publishing.Template.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\0b087eb1\00398b0a_ca6ad201\Kreatif.Common.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\4d788099\0072fa7a_f747dc01\Vianett.Ecommerce.BusinessFacade.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\9f6433fb\0072fa7a_f747dc01\Vianett.Ecommerce.Common.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\ca246f7c\0072fa7a_f747dc01\Vianett.Publishing.Common.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\bbaf1600\0072fa7a_f747dc01\Vianett.Ecommerce.WebCode.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\45043fbf\009f1dc9_6900dc01\Frigg.Services.DAL.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\a4a1f166\0045c979_f747dc01\Kreatif.Ecommerce.DataAccess.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\2a130ec3\009f1dc9_6900dc01\Frigg.Infrastructure.DAL.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\67785af3\009f1dc9_6900dc01\Frigg.Infrastructure.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\7d77defd\009f1dc9_6900dc01\Frigg.Api.Client.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\8b10a67b\0072fa7a_f747dc01\Vianett.Ecommerce.Web.dll
Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\965bfc02\00398b0a_ca6ad201\Vianett.Common.Web.UI.WebControls.TreeStructure.dll
Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\7dd00943\0072fa7a_f747dc01\Vianett.Publishing.BusinessRules.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\App_Web_qg4usozy.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\App_Web_xh5flhrq.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\5689df25\0072fa7a_f747dc01\Vianett.Publishing.SystemFramework.dll
Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Data.Linq.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\6ceddc24\0072fa7a_f747dc01\Vianett.Ecommerce.DataAccess.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\14a70e10\0072fa7a_f747dc01\Vianett.Ecommerce.BusinessRules.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\ef7574f2\0072fa7a_f747dc01\Vianett.Ecommerce.SystemFramework.dll
Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\6999a044\0071173f_75ddd401\RazorEngine.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\0b36edb3\00a10a2c_466ada01\System.Web.Razor.dll
Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll
Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Dynamic\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Dynamic.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\App_Web_lnimjhtk.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\App_Web_ria2xqpz.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\App_Web_ayaw01c3.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\1e5603fc\0072fa7a_f747dc01\Vianett.Ecommerce.Web.UI.WebControls.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\fa469db4\00d63c20_4a98d901\Vianett.Common.Web.Translator.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\App_Web_bieifv1o.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\assembly\dl3\ad68112e\00c61d1d_9c99db01\Dapper.dll
Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\App_Web_pzrdxr1v.dll
Loaded Assembly: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3356d11c\d1e37fac\App_Web_1zbinhki.dll
Loaded Assembly: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\netstandard\v4.0_2.0.0.0__cc7b13ffcd2ddd51\netstandard.dll
at RazorEngine.Compilation.DirectCompilerServiceBase.CompileTypeImpl(TypeContext context)
at RazorEngine.Compilation.DirectCompilerServiceBase.CompileType_Windows(TypeContext context)
at RazorEngine.Compilation.DirectCompilerServiceBase.CompileType(TypeContext context)
at RazorEngine.Templating.RazorEngineCore.CreateTemplateType(ITemplateSource razorTemplate, Type modelType)
at RazorEngine.Templating.RazorEngineCore.Compile(ITemplateKey key, Type modelType)
at RazorEngine.Templating.RazorEngineService.CompileAndCacheInternal(ITemplateKey key, Type modelType)
at RazorEngine.Templating.RazorEngineService.GetCompiledTemplate(ITemplateKey key, Type modelType, Boolean compileOnCacheMiss)
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 Vianett.Publishing.Template.base_helper.RunCompileRazorTemplate(String templateKey, String xml, Object viewBag, Boolean retry) in C:\projects\frigg\Website\Template\baseclass\base_helper.cs:line 1814
at Vianett.Publishing.Template.ItemTemplateXMLParser.ParseItemControl(Int32 systemID, Int32 ecommerceSystemID, String dynamicXml, DataRow row, Int32 sourceWebsiteCategoryID, Int32 iteration, HttpContext context, Product product, String dateFormat, String oddEven, Int64 postID, Int32 productID, Int32 articleID, String placeHolderID, Boolean replaceEmptyValue, Boolean skipRazor) in C:\projects\frigg\Website\Template\Convert\ItemTemplateXMLParser.cs:line 358
at Vianett.Publishing.Web.PostTemplateModule.Page_Load(Object sender, EventArgs e) in C:\projects\frigg\Website\Web\usercontrol\mainmodule\ItemModule\PostTemplateModule.ascx.vb:line 75