Hi nerds,
One of our live websites got this error today and it blocked the website from being viewed:
System.ApplicationException: The process cannot access the file 'D:\Dynamicweb\Files\Templates\Designs\ProjectName\_parsed\DefaultPage_Vite.parsed.cshtml' because it is being used by another process. at Dynamicweb.Core.Helpers.TextFileHelper.ReadTextFile(String path, Encoding encoding) at Dynamicweb.Rendering.Reader.Read(String path, Int32 counter, Encoding encoding, Boolean replaceTags, Boolean& isCached, List`1 includes)
The page template in question looks like this:
@inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
@using Dynamicweb.Environment;
@using Advania.Custom.Extensions;
@MasterPageFile("Master/Master_Vite.cshtml")
@{
ExecutingContext context = new ExecutingContext();
bool isVisualEditor = context.IsVisualEditor();
}
@if (isVisualEditor)
{
<grid>
@Model.Grid("grid", "Grid", "", "VueGrid")
</grid>
} else
{
<app></app>
}
Best regards,
Arnór