Exception in template (Designs\frifeldt\eCom7/CartV2/Step/espresso-cart.cshtml): System.IO.FileNotFoundException: Could not find file 'C:\Windows\TEMP\jpmrknse.dll'.
File name: 'C:\Windows\TEMP\jpmrknse.dll'
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.File.InternalReadAllBytes(String path, Boolean checkHost)
at Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames)
at Microsoft.CSharp.CSharpCodeGenerator.FromDomBatch(CompilerParameters options, CodeCompileUnit[] ea)
at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromDomBatch(CompilerParameters options, CodeCompileUnit[] ea)
at RazorEngine.Compilation.DirectCompilerServiceBase.Compile(TypeContext context)
at RazorEngine.Compilation.DirectCompilerServiceBase.CompileType(TypeContext context)
at RazorEngine.Templating.TemplateService.CreateTemplateType(String razorTemplate, Type modelType)
at RazorEngine.Templating.TemplateService.GetTemplate[T](String razorTemplate, Object model, String cacheName)
at RazorEngine.Templating.TemplateService.GetTemplate(String razorTemplate, Object model, String cacheName)
at RazorEngine.Templating.TemplateService.Parse(String razorTemplate, Object model, DynamicViewBag viewBag, String cacheName)
at RazorEngine.Razor.Parse[T](String razorTemplate, T model, String cacheName)
at Dynamicweb.Rendering.Template.RenderRazorTemplate()
@using System.Globalization; @using System.Text.RegularExpressions; @using Dynamicweb.Ecommerce.Common; @using Co3.Espresso.Website.Services; @functions { CultureInfo AreaCultureInfo = Dynamicweb.Frontend.PageView.Current().Area.CultureInfo; public string getProductLink( string groupID, string productID, string variantID = "" ) { string result = string.Empty; string displayPage = ProductService.Instance.GetGroupDisplayPage( groupID ); if( string.IsNullOrEmpty( displayPage ) == false ) { if( string.IsNullOrEmpty( variantID ) == false ) { result = "{0}&ProductID={1}&variantID={2}"; result = string.Format( result, displayPage, productID, variantID ); } else { result = "{0}&ProductID={1}"; result = string.Format( result, displayPage, productID ); } } return result; } public bool isProductGroupPublishedOnWebsite( string groupID ) { bool result = false; string displayPage = ProductService.Instance.GetGroupDisplayPage( groupID ); if( string.IsNullOrEmpty( displayPage ) == false ) { result = true; } return result; } public string getNewsLink( string categoryName, string newsID ) { string result = NewsService.Instance.GetNewsDisplayPage( categoryName, newsID ); string displayPage = NewsService.Instance.GetNewsDisplayPage( categoryName, newsID ); if( string.IsNullOrEmpty( displayPage ) == false ) { result = "/" + displayPage.Replace( "Id", "ID" ).Replace( "#", "&PID=" ) + "&M=NewsV2&Action=1&NewsID=" + newsID; //result = SearchEngineFriendlyURLs.GetFriendlyUrl( result ); } return result; } public string getImageURL( string url, int width = 2560, int height = 0, int crop = 0, int quality = 75, string format = "jpg" ) { string result = string.Empty; if( string.IsNullOrEmpty( url ) == false ) { result = "/admin/public/getimage.ashx?Image={0}&Width={1}&Height={2}&Format={3}&Quality={4}&Crop={5}"; result = string.Format( result, url, width, height, format, quality, crop ); } return result; } public string getPriceFormatted( string price ) { string result = string.Empty; if( string.IsNullOrEmpty( price ) == true ) { price = Context.Currency.Format(0.00, false); } if ( Context.Currency.SymbolPlace == 0 ) { result = string.Format( "<span class=\"e-product-price-symbol\">{1}</span>&nbsp;{0}", price, Context.Currency.Symbol ); } else{ result = string.Format( "{0}&nbsp;<span class=\"e-product-price-symbol\">{1}</span>", price, Context.Currency.Code ); } return result; } public string getShortDate( DateTime date ) { string result = string.Empty; result = date.Date.ToString( AreaCultureInfo.DateTimeFormat.ShortDatePattern ).Replace( "-" , "." ); return result; } public string getLongDate( DateTime date ) { string result = string.Empty; result = date.Date.ToString( AreaCultureInfo.DateTimeFormat.LongDatePattern ); return result; } } <div class="alert alert-warning mt-2 d-none"> <ul class="material-icons-ul"> <li class="mb-1"><i class="material-icons">info_outline</i> <p class="mb-1"><strong> Bemærk! </strong> Denne side er under udvikling og ikke et retvisende billede af den færdige løsning. /Co3 teamet</p> </li> </ul> </div> <div class="js-e-cart e-cart mt-1 mt-md-3 mt-lg-5"> <div class="row"> <div class="col-12 col-md-4 order-md-last"> <div class="e-cart-sidebar mb-md-3 px-md-2"> <div class="js-e-cart-summery js-e-loading-overlay-override"> <script id="js-e-handlebars-tmpl-cart-summery" type="text/x-handlebars-template"> <p class="mt-1 h3">@Translate("eCom Checkout - Your Order - Heading", "Your order") ({{cart.totalProductQuantity}})</p> <hr class="mt-0"> <div class="small"> <div class="row"> <div class="col-5"> <p class="mb-1 small">@Translate("eCom Checkout - Subtotal - Text", "Subtotal")</p> </div> <div class="col-7"> <p class="mb-1 small text-right">{{{cart.priceWithoutFees}}}</p> </div> <div class="col-7"> <p class="mb-2 small">@Translate("eCom Checkout - Shipping - Text", "Shipping") ({{cart.shippingmethod.name}})</p> </div> <div class="col-5"> <p class="mb-2 small text-right">{{{cart.shippingmethod.price}}}</p> </div> </div> <hr class="mt-0"> <div class="row"> <div class="col-4"> <p class="mb-0 h3"> @Translate("eCom Checkout - Total - Text", "Total") </p> </div> <div class="col-8"> <p class="mb-0 h3 text-right">{{{cart.price}}}</p> </div> <div class="col-6 small"> <p class="mb-1 small"> @Translate("eCom Checkout - Vat - Text", "Vat") </p> </div> <div class="col-6 small"> <p class="small text-right">{{{cart.priceVAT}}}</p> </div> </div> </div> </script> </div> <div class="e-cart-actions mb-1"> <div class="row"> <div class="col-12 mb-1"> <a class="btn btn-primary btn-block px-0" href="/shop/cart/checkout">@Translate("eCom Checkout - Button", "Checkout")</a> </div> <div class="col-12 mb-1 d-none d-md-block"> <a class="btn btn-outline-primary btn-block px-0 btn-sm" href="javascript:history.back();">@Translate("eCom Checkout - Continue Shopping - Button", "Continue shopping")</a> </div> </div> </div> </div> <div class="e-cart-delivery-info px-md-2"> <ul class="material-icons-ul small"> <li><i class="material-icons">local_shipping</i> <p class="mb-0">@Translate("eCom Checkout - Shipping Info - Heading", "Free shipping 1-2 days")</p> <p class="small text-muted mb-1">@Translate("eCom Checkout - Shipping Info - Text", "Regardless of order size")</p> </li> <li><i class="material-icons">replay</i> <p class="mb-0">@Translate("eCom Checkout - Return Info - Heading", "30 days free return")</p> <p class="small text-muted mb-1">@Translate("eCom Checkout - Return Info - Text", "Exchange or money back")</p> </li> </li> </ul> </div> </div> <div class="col-12 col-md-8"> <div class=""> <p class="mt-1 h3">@Translate("eCom Checkout - Heading", "Your basket")</p> <hr class="mt-0"> <form method="post" class="js-e-cart-form e-cart-form small" action=""> <input type="hidden" class="js-e-cart-form-cartcmd" name="CartCmd" value="updateorderlines"> <input type="hidden" class="js-e-cart-form-redirect" name="Redirect" value="false"> <div class="js-e-cart-orderlines js-e-loading-overlay-override"> <script id="js-e-handlebars-tmpl-cart-orderline" type="text/x-handlebars-template"> {{#unless cart.orderlines}} <p class="lead">@Translate("eCom Checkout - Empty Cart - Text", "Your cart is empty, but it doesn’t have to be.")</p> {{/unless}} {{#loop cart.orderlines}} <div class="js-e-orderline e-orderline small" id="{{id}}"> <div class="row"> <div class="col-2 col-xl-3"> <p class="e-orderline-product-image"> <a class="" href="{{{product.url}}}"> <img src="{{{product.imageLarge}}}" alt="" class="img-fluid"> </a> </p> </div> <div class="col-10 col-xl-9 pl-md-0"> <div class="row no-gutters align-items-center"> <div class="col-6 order-1"> <h3 class="e-product-name m-0"><a class="" href="{{{product.url}}}">{{product.name}}</a></h3> </div> <div class="col-6 col-md-3 order-4 order-md-2"> <div class="row no-gutters align-items-center"> <div class="col-5"> <input class="form-control text-center js-e-orderline-quantity" type="text" value="{{quantity}}" name="QuantityOrderLine{{id}}" data-rule-min="0" data-rule-digits="true"> </div> <div class="col-7"> <button class="ml-1 btn btn-outline-primary btn-block px-0 btn-sm js-e-orderline-update">@Translate("eCom Checkout - Update orderline - Button", "Update")</button> </div> </div> </div> <div class="col-6 col-md-3 order-2 order-md-3"> <p class="e-orderline-product-price mb-0 text-right"> <span class="">{{{price}}}</span> </p> </div> <div class="col-6 col-md-12 order-3 order-md-4 my-1 mt-md-0"> <p class="text-muted mb-0"> {{{product.price}}} </p> </div> </div> <div class="row no-gutters"> <div class="col-12"> <ul class="material-icons-ul m-0 mb-1"> {{#if product.stock.id}} {{#compare product.stock.quantity '>' 0}} <li class="mb-0"><i class="material-icons text-success">check</i>{{product.stock.text}}</li> {{else}} <li class="mb-0"><i class="material-icons text-danger">close</i>{{product.stock.text}}</li> {{/compare}} <li class="mb-0"><i class="material-icons">local_shipping</i>{{product.stock.delivery}}</li> {{else}} {{#compare product.stock.quantity '>' 0}} <li class="mb-0"><i class="material-icons text-success">check</i>In stock</li> {{else}} <li class="mb-0"><i class="material-icons text-danger">close</i>Out of stock</li> {{/compare}} {{/if}} </ul> </div> <div class="col-12"> <p class="m-0 small"> <a href="{{{product.url}}}" class="text-auto text-danger small js-e-orderline-delete"><u>@Translate("eCom Checkout - Delete orderline - Button", "Remove")</u></a> </p> </div> </div> </div> </div> <hr> </div> {{/loop}} </script> </div> </form> </div> <div class="e-cart-footer py-1 d-md-none"> <div class="row"> <div class="col-6"> <a class="btn btn-outline-primary btn-block px-0" href="javascript:history.back();">@Translate("eCom Checkout - Continue Shopping - Button", "Continue shopping")</a> </div> <div class="col-6"> <a class="btn btn-primary btn-block px-0" href="/shop/cart/checkout">@Translate("eCom Checkout - Checkout - Button", "Checkout")</a> </div> </div> </div> <div class="row d-none"> <div class="col-12"> <form action="" class="js-e-cart-search-form mt-2"> <div class="js-e-search-input-group e-search-input-group is-empty"> <label class="e-search-label"><i class="material-icons">search</i></label> <input type="text" class="js-e-search-input e-search-input form-control-plaintext" name="q" placeholder="@Translate(" eCom Checkout Cart - Search - Text ", "Search ")"> <span class="js-e-search-clear e-search-clear"><i class="material-icons">close</i></span> <button class="e-search-submit btn btn-primary" type="submit"><i class="material-icons pa-0">search</i></button> </div> </form> </div> </div> </div> </div> </div>
keyboard_arrow_up