Open MisteryMonster opened 2 years ago
This is interesting. It looks like you have the app extracted in C:\Users\virtual\Desktop\dimmer
. How are you running it when you get these errors? Are you using dotnet run
or other means? It's looks like a permissions issue when trying to write out the settings.json. Let me know if you're doing anything different that might cause this issue.
I just dotnet run
in the extracted folder and get these error. So I went to VirtualBox to test. The folder C:\Users\virtual\Desktop\dimmer
is I testing in VirtualBox and works perfectly. And then I try to move the bin
folder to my PC but get no luck, still facing the issue.
I can only run it in Volume C, maybe is about File.Replace. It will throw an exception if source and destination files are on the different volumes.
I can confirm it only works if the executable and settings.json
are on C:
Remove the Config.Net.Json package and update Config.Net to the latest. That will fix the issue with settings.json when running from different drives.
when changing light:
when disable dimming by tray:
when i hit
CTRL+WIN+ALT+D
it crash. I need to delete the settings.json to restart.And the weird thing is, after startup, the dimming not work normally ( it light up every window I clicked and not getting dark). After the errorUnhandled exception has occurred in a component in your application...
show up, it works again.(Sorry I think I can easily move the bin folder to other PC! I'm wrong! works normally after Idotnet run
)