HeuristicLab icon indicating copy to clipboard operation
HeuristicLab copied to clipboard

UnauthorizedAccessException when trying to deserialize read-only files

Open HeuristicLab-Trac-Bot opened this issue 5 years ago • 0 comments

Issue migrated from trac ticket # 3025

component: Persistence | priority: medium

2019-08-28 15:37:04: @foolnotion created the issue


If the file has the read-only attribute on disk then HL persistence will fail to open it and throw an exception:

HeuristicLab version: 3.3.16.17184
UnauthorizedAccessException: Access to the path 'C:\Users\P40913\Nextcloud\Work\Test.hl' is denied.
   at HeuristicLab.Optimizer.FileManager.LoadingCompleted(IStorableContent content, Exception error, Info info) in C:\Projects\hl-core\trunk\HeuristicLab.Optimizer\3.3\FileManager.cs:line 78

HeuristicLab-Trac-Bot avatar Aug 28 '19 15:08 HeuristicLab-Trac-Bot