lostindark / DriverStoreExplorer

Driver Store Explorer [RAPR]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

异常来自 HRESULT:0xC0040009

qwesza opened this issue · comments

2023-01-07 04:38:44Z [Information]: ---------------------------------------------------------------
2023-01-07 04:38:44Z [Information]: Rapr started
2023-01-07 04:38:44Z [Information]: 正在扫描驱动存储...
2023-01-07 04:38:44Z [Error]: System.Runtime.InteropServices.COMException (0xC0040009): 异常来自 HRESULT:0xC0040009
在 Microsoft.Dism.DismUtilities.ThrowIfFail(Int32 hresult, DismSession session, String callerMemberName)
在 Microsoft.Dism.DismApi.Initialize(DismLogLevel logLevel, String logFilePath, String scratchDirectory)
在 Rapr.Utils.DismUtil.EnumeratePackages() 位置 C:\projects\driverstoreexplorer\Rapr\Utils\DismUtil.cs:行号 80
在 System.Threading.Tasks.Task`1.InnerInvoke()
在 System.Threading.Tasks.Task.Execute()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
在 Rapr.DSEForm.d__16.MoveNext() 位置 C:\projects\driverstoreexplorer\Rapr\DSEForm.cs:行号 249
2023-01-07 04:38:53Z [Information]: Shutting down - reason UserClosing

这个问题是dism日志文件无法正常写入导致的,尝试获取对C:\Windows\logs\DISM\dism.log文件的访问权限。
PS:如果你运行dism应该会看到
日志记录被禁用: 无法获取对日志文件 C:\Windows\Logs\DISM\dism.log 的访问权限。
字样