The code is throwing a System.UnauthorizedAccessException with HResult=0x80070005. The error message states that access to the path "210592504d3844d39ad35b3f8953b8cb.pdf" is denied. The exception is being thrown in the MainWindow.xaml.cs file at line 87 in the OnClosing method.\n\nThe error occurs when attempting to delete a directory using the Directory.Delete method. The method is trying to delete the specified directory, but it does not have the necessary permissions to do so.\n\nTo resolve this issue, you need to ensure that the application has the required permissions to access and delete the specified directory and its contents. This may involve checking the file system permissions, running the application with administrative privileges, or changing the ownership or permissions of the directory.


原文地址: https://www.cveoy.top/t/topic/p69f 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录