From 3b3bdf3d46915216b6a85769b078c093f8936a80 Mon Sep 17 00:00:00 2001 From: Phoenix Date: Thu, 7 Aug 2025 16:52:55 +0800 Subject: [PATCH] Implement code changes to enhance functionality and improve performance --- logs/resourcemonitor-20250807.txt | 7073 ----------------------------- 1 file changed, 7073 deletions(-) delete mode 100644 logs/resourcemonitor-20250807.txt diff --git a/logs/resourcemonitor-20250807.txt b/logs/resourcemonitor-20250807.txt deleted file mode 100644 index 20fde8a..0000000 --- a/logs/resourcemonitor-20250807.txt +++ /dev/null @@ -1,7073 +0,0 @@ -2025-08-07 02:24:22.933 +08:00 [INF] Starting Resource Monitor Service -2025-08-07 02:24:23.741 +08:00 [WRN] Failed to initialize performance counter: Bytes Sent/sec -System.InvalidOperationException: Instance '*' does not exist in the specified Category. - at System.Diagnostics.CounterDefinitionSample.GetInstanceValue(String instanceName) - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.InitializeCounters() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 66 -2025-08-07 02:24:23.754 +08:00 [WRN] Failed to initialize performance counter: Bytes Received/sec -System.InvalidOperationException: Instance '*' does not exist in the specified Category. - at System.Diagnostics.CounterDefinitionSample.GetInstanceValue(String instanceName) - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.InitializeCounters() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 66 -2025-08-07 02:24:23.763 +08:00 [INF] Resource Monitor Service starting... -2025-08-07 02:24:23.806 +08:00 [INF] API endpoints configured. Base path: /api -2025-08-07 02:24:23.808 +08:00 [INF] Background monitoring started -2025-08-07 02:24:23.817 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.CounterDefinitionSample.GetInstanceValue(String instanceName) - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:24:23.824 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:24:23.857 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.CounterDefinitionSample.GetInstanceValue(String instanceName) - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:24:23.862 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.CounterDefinitionSample.GetInstanceValue(String instanceName) - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:24:23.869 +08:00 [INF] Application started. Press Ctrl+C to shut down. -2025-08-07 02:24:23.870 +08:00 [INF] Hosting environment: Development -2025-08-07 02:24:23.871 +08:00 [INF] Content root path: C:\Work\DEV\ResourceUsageAPI -2025-08-07 02:24:23.874 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:24:24.179 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:24:27.838 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:24:31.584 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:24:31.586 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:24:31.591 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:24:31.596 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:24:31.623 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:24:31.630 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:24:31.638 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:24:31.773 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:24:36.792 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:24:36.797 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:24:36.798 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:24:36.801 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:24:36.804 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:24:36.829 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:24:40.430 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:24:44.172 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:24:44.174 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:24:44.179 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:24:44.183 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:24:44.203 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:24:44.208 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:24:44.215 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:24:44.334 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:24:49.347 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:24:49.351 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:24:49.352 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:24:49.356 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:24:49.358 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:24:49.386 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:24:52.997 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:24:56.760 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:24:56.763 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:24:56.768 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:24:56.772 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:24:56.790 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:24:56.794 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:24:56.801 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:24:56.905 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:25:01.913 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:25:01.918 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:25:01.920 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:25:01.921 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:25:01.930 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:25:01.952 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:25:02.533 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:25:05.556 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:25:09.296 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:25:09.298 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:25:09.302 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:25:09.306 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:25:09.325 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:25:09.331 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:25:09.337 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:25:09.461 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:25:14.472 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:25:14.477 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:25:14.478 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:25:14.481 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:25:14.483 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:25:14.510 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:25:18.110 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:25:21.849 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:25:21.851 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:25:21.855 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:25:21.860 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:25:21.878 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:25:21.884 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:25:21.891 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:25:22.006 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:25:27.020 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:25:27.025 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:25:27.029 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:25:27.030 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:25:27.030 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:25:27.056 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:25:30.663 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:25:34.405 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:25:34.407 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:25:34.414 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:25:34.419 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:25:34.443 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:25:34.449 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:25:34.456 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:25:34.602 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:25:39.617 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:25:39.622 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:25:39.622 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:25:39.628 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:25:39.628 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:25:39.655 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:25:43.258 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:25:47.010 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:25:47.012 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:25:47.017 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:25:47.021 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:25:47.038 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:25:47.044 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:25:47.051 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:25:47.165 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:25:51.224 +08:00 [WRN] Service stop requested via API -2025-08-07 02:25:51.224 +08:00 [INF] Application is shutting down... -2025-08-07 02:29:29.988 +08:00 [INF] Starting Resource Monitor Service -2025-08-07 02:29:30.349 +08:00 [WRN] Failed to initialize performance counter: Bytes Sent/sec -System.InvalidOperationException: Instance '*' does not exist in the specified Category. - at System.Diagnostics.CounterDefinitionSample.GetInstanceValue(String instanceName) - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.InitializeCounters() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 66 -2025-08-07 02:29:30.357 +08:00 [WRN] Failed to initialize performance counter: Bytes Received/sec -System.InvalidOperationException: Instance '*' does not exist in the specified Category. - at System.Diagnostics.CounterDefinitionSample.GetInstanceValue(String instanceName) - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.InitializeCounters() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 66 -2025-08-07 02:29:30.363 +08:00 [INF] Resource Monitor Service starting... -2025-08-07 02:29:30.395 +08:00 [INF] API endpoints configured. Base path: /api -2025-08-07 02:29:30.397 +08:00 [INF] Background monitoring started -2025-08-07 02:29:30.402 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.CounterDefinitionSample.GetInstanceValue(String instanceName) - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:29:30.410 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:29:30.438 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.CounterDefinitionSample.GetInstanceValue(String instanceName) - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:29:30.442 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:29:30.443 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.CounterDefinitionSample.GetInstanceValue(String instanceName) - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:29:30.446 +08:00 [INF] Application started. Press Ctrl+C to shut down. -2025-08-07 02:29:30.447 +08:00 [INF] Hosting environment: Development -2025-08-07 02:29:30.447 +08:00 [INF] Content root path: C:\Work\DEV\ResourceUsageAPI -2025-08-07 02:29:30.453 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:29:34.083 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:29:37.811 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:29:37.813 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:29:37.818 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:29:37.822 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:29:37.844 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:29:37.851 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:29:37.858 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:29:37.971 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:29:42.979 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:29:42.984 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:29:42.984 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:29:42.988 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:29:42.991 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:29:43.016 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:29:46.620 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:29:50.348 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:29:50.350 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:29:50.354 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:29:50.358 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:29:50.376 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:29:50.383 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:29:50.390 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:29:50.491 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:29:55.501 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:29:55.506 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:29:55.507 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:29:55.511 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:29:55.512 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:29:55.539 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:29:59.134 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:30:02.854 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:30:02.857 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:30:02.861 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:30:02.865 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:30:02.882 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:30:02.888 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:30:02.895 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:30:02.998 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:30:08.009 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:30:08.013 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:30:08.015 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:30:08.019 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:30:08.021 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:30:08.045 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:30:11.635 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:30:15.361 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:30:15.363 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:30:15.372 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:30:15.377 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:30:15.395 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:30:15.401 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:30:15.408 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:30:15.513 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:30:20.524 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:30:20.528 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:30:20.529 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:30:20.533 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:30:20.535 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:30:20.560 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:30:24.167 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:30:27.877 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:30:27.879 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:30:27.884 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:30:27.888 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:30:27.907 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:30:27.912 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:30:27.919 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:30:28.023 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:30:33.038 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:30:33.043 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:30:33.044 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:30:33.048 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:30:33.049 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:30:33.074 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:30:36.659 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:30:40.379 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:30:40.388 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:30:40.393 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:30:40.397 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:30:40.415 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:30:40.420 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:30:40.428 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:30:40.531 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:30:45.534 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:30:45.538 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:30:45.539 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:30:45.543 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:30:45.545 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:30:45.571 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:30:49.155 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:30:52.890 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:30:52.892 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:30:52.896 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:30:52.900 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:30:52.917 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:30:52.923 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:30:52.930 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:30:53.035 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:30:58.042 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:30:58.047 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:30:58.048 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:30:58.051 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:30:58.054 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:30:58.080 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:31:01.689 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:31:05.423 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:31:05.425 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:31:05.429 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:31:05.434 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:31:05.451 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:31:05.457 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:31:05.464 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:31:05.572 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:31:10.584 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:31:10.588 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:31:10.589 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:31:10.593 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:31:10.597 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:31:10.619 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:31:14.224 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:31:17.951 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:31:17.953 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:31:17.957 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:31:17.961 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:31:17.978 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:31:17.984 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:31:17.991 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:31:18.091 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:31:23.096 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:31:23.101 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:31:23.102 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:31:23.105 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:31:23.108 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:31:23.132 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:31:26.735 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:31:30.456 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:31:30.458 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:31:30.463 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:31:30.467 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:31:30.484 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:31:30.489 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:31:30.497 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:31:30.598 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:31:35.600 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:31:35.604 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:31:35.605 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:31:35.610 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:31:35.612 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:31:35.637 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:31:39.244 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:31:42.976 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:31:42.978 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:31:42.983 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:31:42.987 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:31:43.005 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:31:43.010 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:31:43.018 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:31:43.124 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:31:48.135 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:31:48.139 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:31:48.141 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:31:48.144 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:31:48.146 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:31:48.171 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:31:51.541 +08:00 [INF] Application is shutting down... -2025-08-07 02:31:55.261 +08:00 [INF] Starting Resource Monitor Service -2025-08-07 02:31:55.662 +08:00 [WRN] Failed to initialize performance counter: Bytes Sent/sec -System.InvalidOperationException: Instance '*' does not exist in the specified Category. - at System.Diagnostics.CounterDefinitionSample.GetInstanceValue(String instanceName) - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.InitializeCounters() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 66 -2025-08-07 02:31:55.675 +08:00 [WRN] Failed to initialize performance counter: Bytes Received/sec -System.InvalidOperationException: Instance '*' does not exist in the specified Category. - at System.Diagnostics.CounterDefinitionSample.GetInstanceValue(String instanceName) - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.InitializeCounters() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 66 -2025-08-07 02:31:55.681 +08:00 [INF] Resource Monitor Service starting... -2025-08-07 02:31:55.713 +08:00 [INF] API endpoints configured. Base path: /api -2025-08-07 02:31:55.715 +08:00 [INF] Background monitoring started -2025-08-07 02:31:55.720 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.CounterDefinitionSample.GetInstanceValue(String instanceName) - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:31:55.727 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:31:55.748 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.CounterDefinitionSample.GetInstanceValue(String instanceName) - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:31:55.753 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:31:55.754 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.CounterDefinitionSample.GetInstanceValue(String instanceName) - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:31:55.763 +08:00 [INF] Application started. Press Ctrl+C to shut down. -2025-08-07 02:31:55.764 +08:00 [INF] Hosting environment: Development -2025-08-07 02:31:55.764 +08:00 [INF] Content root path: C:\Work\DEV\ResourceUsageAPI -2025-08-07 02:31:55.772 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:31:59.375 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:32:03.107 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:32:03.113 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:03.118 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:03.123 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:03.146 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:32:03.153 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:32:03.161 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:32:03.296 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:32:08.305 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:08.310 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:32:08.310 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:08.315 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:32:08.316 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:08.340 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:32:11.939 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:32:15.669 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:32:15.671 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:15.676 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:15.680 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:15.698 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:32:15.704 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:32:15.712 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:32:15.827 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:32:20.835 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:20.839 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:32:20.841 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:20.845 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:32:20.846 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:20.873 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:32:24.470 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:32:28.200 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:32:28.202 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:28.207 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:28.211 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:28.228 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:32:28.234 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:32:28.241 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:32:28.354 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:32:33.372 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:33.376 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:32:33.377 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:33.381 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:32:33.384 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:33.409 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:32:37.005 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:32:40.738 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:32:40.740 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:40.744 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:40.748 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:40.765 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:32:40.771 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:32:40.778 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:32:40.885 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:32:45.897 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:45.902 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:32:45.903 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:45.907 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:32:45.909 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:45.935 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:32:48.512 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:48.516 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:32:48.517 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:48.521 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:32:48.523 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:48.557 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:32:49.533 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:32:52.149 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:32:53.266 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:32:53.267 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:53.272 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:53.276 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:53.293 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:32:53.299 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:32:53.306 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:32:53.419 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:32:55.869 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:32:55.871 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:55.876 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:55.880 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:55.897 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:32:55.903 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:32:55.909 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:32:58.435 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:58.440 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:32:58.440 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:58.444 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:32:58.446 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:32:58.472 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:33:02.064 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:33:05.789 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:33:05.791 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:33:05.796 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:33:05.800 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:33:05.816 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:33:05.822 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:33:05.828 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:33:05.928 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:33:10.935 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:33:10.939 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:33:10.941 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:33:10.943 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:33:10.946 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:33:10.971 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:33:14.569 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:33:18.289 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:33:18.291 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:33:18.296 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:33:18.301 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:33:18.318 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:33:18.323 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:33:18.330 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:33:18.436 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:33:23.443 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:33:23.450 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:33:23.450 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:33:23.453 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:33:23.456 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:33:23.478 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:33:27.083 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:33:30.808 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:33:30.810 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:33:30.814 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:33:30.818 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:33:30.839 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:33:30.844 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:33:30.851 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:33:30.960 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:33:35.976 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:33:35.980 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:33:35.981 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:33:35.986 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:33:35.986 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:33:36.011 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:33:39.622 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:33:43.361 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:33:43.363 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:33:43.368 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:33:43.372 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:33:43.389 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:33:43.395 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:33:43.401 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:33:43.510 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:33:48.526 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:33:48.530 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:33:48.531 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:33:48.535 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:33:48.536 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:33:48.563 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:33:52.156 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:33:55.887 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:33:55.889 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:33:55.893 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:33:55.897 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:33:55.915 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:33:55.920 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:33:55.926 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:33:56.035 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:34:01.039 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:34:01.044 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:34:01.046 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:34:01.048 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:34:01.050 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:34:01.075 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:34:04.687 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:34:08.410 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:34:08.413 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:34:08.417 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:34:08.421 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:34:08.439 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:34:08.444 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:34:08.450 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:34:08.561 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:34:13.571 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:34:13.575 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:34:13.576 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:34:13.580 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:34:13.581 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:34:13.607 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:34:17.208 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:34:20.937 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:34:20.940 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:34:20.944 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:34:20.948 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:34:20.966 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:34:20.978 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:34:20.984 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:34:21.108 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:34:26.125 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:34:26.129 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:34:26.130 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:34:26.134 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:34:26.135 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:34:26.161 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:34:29.759 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:34:33.480 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:34:33.483 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:34:33.487 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:34:33.492 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:34:33.511 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:34:33.517 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:34:33.524 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:34:33.642 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:34:38.659 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:34:38.663 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:34:38.665 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:34:38.669 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:34:38.670 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:34:38.696 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:34:42.293 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:34:46.018 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:34:46.019 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:34:46.024 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:34:46.027 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:34:46.047 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:34:46.054 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:34:46.060 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:34:46.171 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:34:51.179 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:34:51.183 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:34:51.184 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:34:51.188 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:34:51.189 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:34:51.215 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:34:54.806 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:34:58.540 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:34:58.542 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:34:58.546 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:34:58.550 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:34:58.568 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:34:58.574 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:34:58.581 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:34:58.693 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:35:03.699 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:35:03.703 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:35:03.705 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:35:03.709 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:35:03.710 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:35:03.735 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:35:07.325 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:35:11.047 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:35:11.049 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:35:11.053 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:35:11.057 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:35:11.075 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:35:11.081 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:35:11.088 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:35:11.198 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:35:16.206 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:35:16.210 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:35:16.212 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:35:16.215 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:35:16.216 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:35:16.243 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:35:19.833 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:35:23.557 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:35:23.559 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:35:23.564 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:35:23.568 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:35:23.585 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:35:23.591 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:35:23.597 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:35:23.706 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:35:28.721 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:35:28.725 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:35:28.726 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:35:28.730 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:35:28.731 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:35:28.757 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:35:32.360 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:35:36.094 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:35:36.096 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:35:36.100 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:35:36.104 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:35:36.121 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:35:36.127 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:35:36.134 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:35:36.238 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:35:41.243 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:35:41.247 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.OrderedIterator`1.ToList(Int32 minIdx, Int32 maxIdx) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:35:41.249 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:35:41.253 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:35:41.254 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:35:41.300 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:35:44.894 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:35:48.621 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:35:48.623 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:35:48.627 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:35:48.632 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:35:48.649 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:35:48.654 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:35:48.661 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:35:48.766 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:35:53.774 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:35:53.779 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:35:53.780 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:35:53.784 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:35:53.786 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:35:53.810 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:35:57.403 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:36:01.137 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:36:01.139 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:36:01.143 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:36:01.147 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:36:01.164 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:36:01.169 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:36:01.175 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:36:01.280 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:36:06.284 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:36:06.289 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:36:06.289 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:36:06.294 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:36:06.295 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:36:06.321 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:36:09.919 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:36:13.648 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:36:13.650 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:36:13.655 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:36:13.659 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:36:13.676 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:36:13.682 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:36:13.689 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:36:13.793 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:36:18.804 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:36:18.810 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:36:18.810 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:36:18.813 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:36:18.817 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:36:18.841 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:36:22.443 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:36:26.177 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:36:26.179 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:36:26.184 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:36:26.189 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:36:26.208 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:36:26.214 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:36:26.224 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:36:26.343 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:36:31.355 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:36:31.359 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:36:31.360 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:36:31.364 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:36:31.366 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:36:31.390 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:36:34.996 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:36:38.729 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:36:38.731 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:36:38.736 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:36:38.740 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:36:38.759 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:36:38.765 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:36:38.772 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:36:38.895 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:36:43.902 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:36:43.906 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:36:43.907 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:36:43.912 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:36:43.913 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:36:43.939 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:36:47.532 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:36:51.250 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:36:51.252 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:36:51.257 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:36:51.262 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:36:51.283 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:36:51.289 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:36:51.296 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:36:51.401 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:36:56.416 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:36:56.420 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:36:56.422 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:36:56.425 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:36:56.427 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:36:56.452 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:37:00.055 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:37:03.658 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:03.664 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:37:03.664 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:03.668 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:37:03.670 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:03.702 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:37:03.789 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:37:03.791 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:03.796 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:03.800 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:03.818 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:37:03.824 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:37:03.830 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:37:03.942 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:37:07.312 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:37:08.958 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:08.964 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:37:08.965 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:08.967 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:37:08.971 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:08.994 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:37:11.051 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:37:11.053 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:11.057 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:11.061 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:11.078 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:37:11.084 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:37:11.091 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:37:12.604 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:37:16.324 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:37:16.326 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:16.330 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:16.334 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:16.351 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:37:16.357 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:37:16.363 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:37:16.467 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:37:21.477 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:21.481 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:37:21.483 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:21.486 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:37:21.488 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:21.513 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:37:25.120 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:37:28.854 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:37:28.856 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:28.861 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:28.866 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:28.882 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:37:28.888 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:37:28.895 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:37:28.997 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:37:34.000 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:34.005 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:37:34.006 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:34.009 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:37:34.011 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:34.037 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:37:37.630 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:37:41.363 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:37:41.365 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:41.369 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:41.373 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:41.390 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:37:41.396 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:37:41.403 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:37:41.504 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:37:46.521 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:46.526 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Diagnostics.Process.get_HasExited() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__13_1(Process p) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 528 - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:37:46.527 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:46.531 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:37:46.533 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at System.Diagnostics.PerformanceCounter.NextValue() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:46.560 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:37:50.161 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:37:53.889 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:37:53.892 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:53.896 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:53.900 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:53.917 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:37:53.923 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:37:53.930 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:37:54.034 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:37:59.044 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:59.048 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:37:59.050 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:59.053 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:37:59.056 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:37:59.081 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:38:02.688 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:38:06.415 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:38:06.416 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:38:06.421 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:38:06.425 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:38:06.442 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:38:06.448 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:38:06.455 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:38:06.561 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:38:11.572 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:38:11.576 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:38:11.578 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:38:11.580 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:38:11.582 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:38:11.607 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:38:15.213 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:38:18.959 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:38:18.961 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:38:18.965 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:38:18.969 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:38:18.985 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:38:18.991 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:38:18.998 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:38:19.100 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:38:24.105 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:38:24.108 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:38:24.110 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:38:24.114 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:38:24.115 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:38:24.141 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:38:27.737 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:38:31.477 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:38:31.479 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:38:31.483 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:38:31.487 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:38:31.504 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:38:31.510 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:38:31.516 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:38:31.633 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:38:36.636 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:38:36.641 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:38:36.642 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:38:36.646 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:38:36.647 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:38:36.673 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:38:40.261 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:38:43.992 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:38:43.994 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:38:43.998 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:38:44.002 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:38:44.018 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:38:44.024 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:38:44.031 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:38:44.135 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:38:49.149 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:38:49.152 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:38:49.154 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:38:49.157 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:38:49.158 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:38:49.184 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:38:52.769 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:38:56.498 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:38:56.500 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:38:56.504 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:38:56.507 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:38:56.525 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:38:56.530 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:38:56.537 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:38:56.656 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:39:01.672 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:39:01.676 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:39:01.677 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:39:01.681 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:39:01.683 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:39:01.708 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:39:05.305 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:39:09.046 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:39:09.049 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:39:09.054 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:39:09.059 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:39:09.078 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:39:09.085 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:39:09.093 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:39:09.211 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:39:14.219 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:39:14.223 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:39:14.224 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:39:14.229 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:39:14.229 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:39:14.255 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:39:17.852 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:39:19.728 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:39:19.733 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:39:19.734 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:39:19.738 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:39:19.741 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:39:19.762 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:39:21.573 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:39:21.577 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:39:21.581 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:39:21.586 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:39:21.603 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:39:21.608 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:39:21.615 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:39:21.722 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:39:23.356 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:39:26.726 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:39:26.731 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:39:26.731 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:39:26.735 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:39:26.737 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:39:26.764 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:39:27.069 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:39:27.070 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:39:27.075 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:39:27.079 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:39:27.096 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:39:27.102 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:39:27.108 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:39:30.358 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:39:34.087 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:39:34.089 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:39:34.093 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:39:34.097 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:39:34.115 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:39:34.120 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:39:34.127 +08:00 [WRN] Could not get hard drive temperatures -System.Management.ManagementException: Access denied - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.b__15_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 609 -2025-08-07 02:39:34.239 +08:00 [WRN] Could not determine if game is running fullscreen -System.BadImageFormatException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Reference assemblies cannot be loaded for execution. (0x80131058) -File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ---> System.BadImageFormatException: Cannot load a reference assembly for execution. - at ResourceMonitorService.Services.GameDetectionService.<>c.b__12_0() - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.GameDetectionService.IsGameRunningFullscreenAsync() in C:\Work\DEV\ResourceUsageAPI\Services\GameDetectionService.cs:line 144 -2025-08-07 02:39:39.255 +08:00 [WRN] Could not get disk performance data for drive C:\ -System.InvalidOperationException: Instance 'C' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:39:39.260 +08:00 [ERR] Error getting top processes -System.ComponentModel.Win32Exception (5): Access is denied. - at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited) - at System.Diagnostics.Process.UpdateHasExited() - at System.Linq.Enumerable.ArrayWhereSelectIterator`2.MoveNext() - at System.Linq.Enumerable.IEnumerableWhereIterator`1.ToArray() - at ResourceMonitorService.Services.ResourceMonitorService.<>c__DisplayClass13_0.b__0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 527 - at System.Threading.Tasks.Task`1.InnerInvoke() - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetTopProcessesAsync(Int32 count) in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 525 -2025-08-07 02:39:39.261 +08:00 [WRN] Could not get disk performance data for drive E:\ -System.InvalidOperationException: Instance 'E' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:39:39.265 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569 -2025-08-07 02:39:39.267 +08:00 [WRN] Could not get disk performance data for drive G:\ -System.InvalidOperationException: Instance 'G' does not exist in the specified Category. - at System.Diagnostics.PerformanceCounter.NextSample() - at ResourceMonitorService.Services.ResourceMonitorService.b__11_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 386 -2025-08-07 02:39:39.294 +08:00 [WRN] Could not get additional GPU information via WMI -System.InvalidCastException: Unable to cast object of type 'System.UInt32' to type 'System.UInt64'. - at ResourceMonitorService.Services.ResourceMonitorService.b__10_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 299 -2025-08-07 02:39:42.887 +08:00 [WRN] Could not get CPU temperature -System.Management.ManagementException: Not supported - at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) - at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() - at ResourceMonitorService.Services.ResourceMonitorService.<>c.b__14_0() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 575 - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) ---- End of stack trace from previous location --- - at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) - at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) ---- End of stack trace from previous location --- - at ResourceMonitorService.Services.ResourceMonitorService.GetCpuTemperatureAsync() in C:\Work\DEV\ResourceUsageAPI\Services\ResourceMonitorService.cs:line 569