Completed
Last Updated: 23 Jan 2024 06:56 by ADMIN
Release 2024 Q1
Amer
Created on: 21 Dec 2023 16:18
Type: Bug Report
1
The file WebReportDesignerSettings.json remains locked when created by the Web Designer REST Service

If the file `WebReportDesignerSettings.json` doesn't exist before running the Web Designer REST Service, the latter will create it. However, the file will remain locked and the service will throw the exception:

"The process cannot access the file '/app/Telerik_Reporting/WebReportDesignerSettings.json' because it is being used by another process."

When the file exists, the problem will be avoided, which leads to the workaround - create the file at a starting point of the application. Here is a sample code:

static void InitFile()
{
            var path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Telerik Reporting", "WebReportDesignerSettings.json");
            File.Create(path).Close();
}

 

 

 

0 comments