Developer forum

Forum » CMS - Standard features » Page template locked by process

Page template locked by process

Arnór Halldórsson
Arnór Halldórsson
Reply

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


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Arnor

Can be many things locking the file - antivirus, back jobs etc.. Did you see the error again?

It is not a known issue at least.

BR Nicolai

 

You must be logged in to post in the forum