Error executing template "/Designs/Swift/Paragraph/Custom_Relewise_Search_List_Responds.cshtml"
System.IO.IOException: There is not enough space on the disk.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.FileStream.FlushWrite(Boolean calledFromFinalizer)
   at System.IO.FileStream.Dispose(Boolean disposing)
   at System.IO.Stream.Close()
   at System.IO.StreamWriter.Dispose(Boolean disposing)
   at System.IO.TextWriter.Dispose()
   at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
   at RazorEngine.Roslyn.CSharp.RoslynCompilerServiceBase.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.<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 Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 2 @using System.Collections.Generic 3 @using System.Linq 4 @using Dalgas.Custom.Constants 5 @using Dalgas.Custom.Models.Ecommerce 6 @using Dalgas.Custom.Models.Relewise 7 @using Dynamicweb 8 @using Dynamicweb.Frontend 9 10 @{ 11 int areaId = PageView.Current().AreaID; 12 string languageCode = PageView.Current().Area.Item["RelewiseLanguageCode"]?.ToString(); 13 string currencyId = PageView.Current().Area.EcomCurrencyId; 14 string query = string.Empty; 15 if (!string.IsNullOrEmpty(Dynamicweb.Context.Current.Request["q"])) 16 { 17 query = Dynamicweb.Context.Current.Request["q"].Trim(); 18 } 19 20 SearchResults request = new SearchResults(); 21 22 if (!string.IsNullOrEmpty(query)) 23 { 24 request = Dalgas.Custom.Services.Relewise.SearchService.Instance.GlobalSearchResponse(areaId, languageCode, currencyId, query, ListType.List, 30, 30); 25 } 26 27 List<PageResult> pages = request?.Pages ?? new List<PageResult>(); 28 ProductListViewModel productsListViewModel = request?.ProductList ?? new ProductListViewModel(); 29 30 string iconPath = "/Files/Templates/Designs/Swift/Assets/icons/"; 31 int paragraphId = PageView.Current().CurrentParagraph.ID; 32 } 33 34 <span class="nav-link lh-sm text-break"> 35 <h6 class="mb-3 fw-normal text-uppercase fs-6 text-accent"> 36 @Translate("Search here") 37 </h6> 38 </span> 39 40 <div class="type-ahead-dropdown mb-5"> 41 <form method="post" class="position-relative suggest-form"> 42 43 <input type="hidden" name="redirect" value="false"> 44 45 <label for="searchField_@paragraphId" class="visually-hidden">@Translate("Search here")</label> 46 47 <span class="position-absolute top-0 icon-2 px-3 d-flex align-items-center h-100 search-icon"> 48 @ReadFile(iconPath + "search.svg") 49 </span> 50 51 <input id="searchField_@paragraphId" 52 class="form-control js-type-ahead-field type-ahead-field py-2 ps-5 pe-3" 53 type="search" 54 placeholder="@Translate("Search here")" 55 autocomplete="off" 56 maxlength="255" 57 name="q" 58 value="@query" 59 data-original="@query" 60 onfocus="swift.Typeahead.init()"> 61 62 <button type="button" 63 onclick="var f = document.getElementById('searchField_@paragraphId'); f.value = ''; f.focus();" 64 class="btn h-100 icon-2 reset-search" 65 aria-label="@Translate("Clear search")" 66 style="opacity: 0; position: absolute; top: 0; right: 0; visibility: hidden;"> 67 @ReadFile(iconPath + "x.svg") 68 </button> 69 </form> 70 </div> 71 72 @if (productsListViewModel.CustomProducts.Any() || pages.Count > 0) 73 { 74 <p class="g-col-12 lead "> 75 @Translate("We have found") @Translate("results for"): 76 <strong>@query</strong> 77 </p> 78 } 79 80 <div class="row justify-content-between"> 81 @if (productsListViewModel.CustomProducts.Any()) 82 { 83 <productlist class="col-12 @(pages.Any() ? "col-lg-8" : "col-lg-12")"> 84 85 <span class="nav-link ps-0"> 86 <h6 class="mb-3 fw-normal text-uppercase fs-6"> 87 @Translate("Search result heading – Products", "Products") 88 </h6> 89 </span> 90 91 <ul class="p-0"> 92 @foreach (ProductViewModel product in productsListViewModel.CustomProducts) 93 { 94 <li class="dropdown-item p-2 text-wrap"> 95 @product.RenderedHtml.ListItem 96 </li> 97 } 98 </ul> 99 100 </productlist> 101 } 102 103 @if (pages.Any()) 104 { 105 <div class="col-12 @(productsListViewModel.CustomProducts.Any() ? "col-lg-4" : "col-lg-12")"> 106 <span class="nav-link ps-0"> 107 <h6 class="mb-3 fw-normal text-uppercase fs-6"> 108 @Translate("Search result heading – Content", "Indhold") 109 </h6> 110 </span> 111 112 <div class="grid"> 113 @foreach (PageResult page in pages) 114 { 115 @page.ListItem 116 } 117 </div> 118 </div> 119 } 120 121 122 </div> 123

No products in cart