Error executing template "Designs/Swift/Paragraph/Swift_ProductComponentParagraph.cshtml" System.ArgumentException: Could not write parsed file: D:\dynamicweb.net\Solutions\Nextech\superhome.cloud.dynamicweb-cms.com\Files\Templates\Designs\Swift\_parsed\Swift_ProductComponentEdit.parsed.cshtml System.IO.IOException: The process cannot access the file 'D:\dynamicweb.net\Solutions\Nextech\superhome.cloud.dynamicweb-cms.com\Files\Templates\Designs\Swift\_parsed\Swift_ProductComponentEdit.parsed.cshtml' because it is being used by another process. 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.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost) at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost) at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding) at Dynamicweb.Core.Helpers.TextFileHelper.WriteTextFile(String value, String path, Boolean appendToFile, Encoding encoding) at Dynamicweb.Rendering.Designer.Parser.Parse(Layout l) at Dynamicweb.Rendering.Designer.Parser.Parse(Layout l) at Dynamicweb.Rendering.Designer.Layout.CheckParsed() at Dynamicweb.Rendering.Designer.Layout.GetLayoutByLocation(String path) at Dynamicweb.Content.Layouts.LayoutLocator.FindLayout(Page page, String layoutName) at Dynamicweb.Frontend.Content.GetLayoutForDevice(Page page, DeviceType device) at Dynamicweb.Frontend.Content.CreateGridContent(Int32 contentId, Boolean ignoreVisualEdit) at Dynamicweb.Frontend.Content.RenderExternalGrid(Int32 pageId, String container) at CompiledRazorTemplates.Dynamic.RazorEngine_bc07f75a6ed545aa9b67bb97e2f19b67.Execute() in D:\dynamicweb.net\Solutions\Nextech\superhome.cloud.dynamicweb-cms.com\Files\Templates\Designs\Swift\Paragraph\Swift_ProductComponentParagraph.cshtml:line 40 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 Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 2 3 @{ 4 int itemSourcePageId = Convert.ToInt32(Model.Item.GetRawValueString("ComponentSource", "0")); 5 6 var pageService = new Dynamicweb.Content.PageService(); 7 itemSourcePageId = itemSourcePageId > 0 && pageService.GetPageOrLanguage(itemSourcePageId, Pageview.AreaID) != null ? pageService.GetPageOrLanguage(itemSourcePageId, Pageview.AreaID).ID : itemSourcePageId; 8 } 9 10 @if (itemSourcePageId != 0) { 11 var page = Dynamicweb.Content.Services.Pages.GetPage(itemSourcePageId); 12 13 if (page != null) { 14 var pageViewModel = Dynamicweb.Frontend.ContentViewModelFactory.CreatePageInfoViewModel(page); 15 string itemTheme = !string.IsNullOrWhiteSpace(pageViewModel.Item.GetRawValueString("Theme")) ? " theme " + pageViewModel.Item.GetRawValueString("Theme").Replace(" ", "").Trim().ToLower() : string.Empty; 16 17 string contentPadding = pageViewModel.Item.GetRawValueString("ContentPadding", ""); 18 contentPadding = contentPadding == "none" ? "p-0" : contentPadding; 19 contentPadding = contentPadding == "small" ? "p-2 p-md-3" : contentPadding; 20 contentPadding = contentPadding == "large" ? "p-4 p-md-5" : contentPadding; 21 22 string layout = Model.Item.GetRawValueString("Layout", "top"); 23 switch (layout) 24 { 25 case "top": 26 case "alignLeftMiddle": 27 layout = ""; 28 break; 29 case "center": 30 case "alignLeft": 31 layout = "d-flex align-items-center text-start"; 32 break; 33 } 34 35 <div class="@contentPadding @itemTheme @(layout) h-100 item_@Model.Item.SystemName.ToLower()"> 36 <div class="w-100"> 37 <div id="zoomImageResult" class="img-zoom-result"></div> 38 </div> 39 <div class="w-100"> 40 @RenderGrid(itemSourcePageId) 41 </div> 42 </div> 43 } else if (Pageview.IsVisualEditorMode) { 44 <div class="alert alert-dark m-0" role="alert"> 45 <span>@Translate("The selected component does not exist anymore")</span> 46 </div> 47 } 48 } else if (Pageview.IsVisualEditorMode) { 49 <div class="alert alert-dark m-0" role="alert"> 50 <span>@Translate("Product component: The component will be shown here, if any")</span> 51 </div> 52 } 53
-
•COMPOSITION: rice, maize, dehydrated poultry protein, vegetable protein isolate*,animal fats, hydrolysed animal proteins, beet pulp, vegetable fibres, minerals, fish oil, soya oil, fructo-oligo-saccharides, borage oil, marigold extract (source of lutein),green tea and grape extracts (source of polyphenols), hydrolysed crustaceans (source of glucosamine), hydrolysed cartilage (source of chondroitin).•ADDITIVES (per kg): Nutritional additives: Vitamin A: 30200 IU, Vitamin D3: 800 IU, E1 (Iron):49 mg, E2 (Iodine): 4.9 mg, E4 (Copper): 9 mg, E5 (Manganese): 64 mg, E6 (Zinc):192 mg, E8 (Selenium): 0.11 mg - Technological additives: Pentasodium triphosphate:3.5 g - Preservatives - Antioxidants.•ANALYTICAL CONSTITUENTS: Protein:28% - Fat content: 16% - Crude ash: 5% -Crude fibres: 2.1%.
Product Details
- Barcode
- 3182550747820
- Age
- Adult
- Brand
- Royal Canin
- On Offer
- Yes
- Discount Percentage
- -20%
- Supplier Item
- BCA-3
- Category
- Pet Food
- Weight
- 3Kg
- Sub-Category
- Dogs Dry Food
Similar Products
You may also like
Previously Viewed