SimpleKVM icon indicating copy to clipboard operation
SimpleKVM copied to clipboard

Crashes at startup: Could not find file rules.json

Open crowbarsolutions opened this issue 1 year ago • 1 comments

Application: SimpleKVM(1).exe CoreCLR Version: 8.0.123.58001 .NET Version: 8.0.1 Description: The process was terminated due to an unhandled exception. Exception Info: System.IO.FileNotFoundException: Could not find file 'C:\Users\poop\Downloads\rules.json'. File name: 'C:\Users\poop\Downloads\rules.json' at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode) at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode) at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode) at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize) at System.IO.File.ReadAllText(String path, Encoding encoding) at SimpleKVM.Form1.LoadRules() at SimpleKVM.Form1..ctor() at SimpleKVM.Program.Main()

Using v2.0.0. As a first time user, it looks like it's looking for a rules.json file that I don't have? I installed an earlier version that generated it, and was then able to use v2.

crowbarsolutions avatar Jul 03 '24 05:07 crowbarsolutions

Yikes! Thanks Crowbar. I'll fix that up tonight

fiddyschmitt avatar Jul 03 '24 06:07 fiddyschmitt

Must have been a permissions issue of not being able to write to Downloads folder. Unable to reproduce

fiddyschmitt avatar Feb 22 '25 05:02 fiddyschmitt