今天遇到的bug。。。

2021-01-26 23:22:45.057) >> System.UnauthorizedAccessException: 对路径“C:\Program Files\JiJiDown\Config\BgImage”的访问被拒绝。
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
在 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
在 System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
在 System.IO.FileStream…ctor(String path, FileMode mode)
在 Common.NewC.ImageFileToImageBrush(String filePath, Stretch Stretch)
在 JiJiDownForWPF.MainWindow.q17VvlM1iNIRZxYV6C6(Object , Stretch )
在 JiJiDownForWPF.MainWindow.JFDod2bTxt()
在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

这不属于bug,以管理员身份运行就可以了