File: C:\Program Files\paint.net\Effects\RemoveBackground.dll
Name: RemoveBackground.RemoveBackgroundPlugin
Version: 1.0.0.0
Author: Copyright © Brian 2021
Copyright:
Website: https://github.com/WhelanB/PDN-RemoveBG
Full error message: PaintDotNet.WorkerThreadException: Worker thread threw an exception
---> System.UnauthorizedAccessException: Access to the path 'C:\Program Files\paint.net\Effects\config.json' is denied.
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, Nullable`1 unixCreateMode)
at System.IO.File.OpenHandle(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
at RemoveBackground.RemoveBackgroundPlugin.GetOrPromptApiKey()
at RemoveBackground.RemoveBackgroundPlugin.OnSetRenderInfo(EffectConfigToken parameters, RenderArgs dstArgs, RenderArgs srcArgs)
at PaintDotNet.Effects.Effect.SetRenderInfo(EffectConfigToken newToken, RenderArgs dstArgs, RenderArgs srcArgs) in D:\src\pdn\src_4_3_x\Effects.Core\Effects\Effect.cs:line 168
at PaintDotNet.Effects.Effect.ClassicEffectRenderer.SetRenderInfo(EffectConfigToken newToken, RenderArgs dstArgs) in D:\src\pdn\src_4_3_x\Effects.Core\Effects\Effect.cs:line 556
at PaintDotNet.Effects.EffectDriver`1.ThreadFunction() in D:\src\pdn\src_4_3_x\PaintDotNet\Effects\EffectDriver`1.cs:line 367
--- End of inner exception stack trace ---
at PaintDotNet.Effects.EffectDriver`1.DrainExceptions() in D:\src\pdn\src_4_3_x\PaintDotNet\Effects\EffectDriver`1.cs:line 538
at PaintDotNet.Menus.EffectMenuBase.DoEffect(IEffect effect, EffectConfigToken token, Result`1 lazyAllRenderScans, Result`1 lazyRemainingRenderScans, Surface originalSurface, Exception& exception) in D:\src\pdn\src_4_3_x\PaintDotNet\Menus\EffectMenuBase.cs:line 1622
Thought I wouldn't make the reply 10 miles long so the full details are in le file bellow
ERRORDETAILS-PAINTDOTNET-5012-202403011147.txt