You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Application: PowerMateVolume.exe
CoreCLR Version: 8.0.524.21615
.NET Version: 8.0.5
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException:
File name: 'System.Security.Principal.Windows, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at System.Diagnostics.Eventing.Reader.NativeWrapper.ConvertToObject(EvtVariant val)
at System.Diagnostics.Eventing.Reader.NativeWrapper.EvtRenderBufferWithContextSystem(EventLogHandle contextHandle, EventLogHandle eventHandle, EvtRenderFlags flag, SystemProperties systemProperties)
at System.Diagnostics.Eventing.Reader.EventLogRecord.PrepareSystemData()
at System.Diagnostics.Eventing.Reader.EventLogRecord.get_Id()
at PowerMateVolume.EventLogStandbyListener.onEventRecord(Object sender, EventRecordWrittenEventArgs e)
at System.Diagnostics.Eventing.Reader.EventLogWatcher.HandleEventsRequestCompletion()
at System.Diagnostics.Eventing.Reader.EventLogWatcher.RequestEvents()
at System.Diagnostics.Eventing.Reader.EventLogWatcher.SubscribedEventsAvailableCallback(Object state, Boolean timedOut)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.RegisteredWaitHandle.PerformCallback(Boolean timedOut)
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
Running the program again manually later started fine.
The file C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.6\System.Security.Principal.Windows.dll exists on my computer and its Authenticode signature is valid. Maybe .NET 8.0.6 was in the middle of installing the very recent 8.0.6 update when my program launched during boot? This installation seems to have finished at 11:52 PM, before the crash. Maybe the lazy-loaded DLL file got pulled out from under my running process, and it crashed later when it tried to access it with the old runtime paths still in memory but the corresponding files gone from disk.
The text was updated successfully, but these errors were encountered:
Maybe you could start a file watcher for C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.6\hostpolicy.dll or whatever your process has loaded, and when it is deleted, take some action like restart the process with the same arguments, or call some other process like systemctl restart myservice.service or Restart-Service MyService.
This happened 3 hours after the computer shut down unexpectedly due to a power outage, and I turned it back on when power was restored.
The getter for
EventLogRecord.Id
threw the exception when called fromEventLogStandbyListener.onEventRecord(object?, EventRecordWrittenEventArgs)
.Running the program again manually later started fine.
The file
C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.6\System.Security.Principal.Windows.dll
exists on my computer and its Authenticode signature is valid. Maybe .NET 8.0.6 was in the middle of installing the very recent 8.0.6 update when my program launched during boot? This installation seems to have finished at 11:52 PM, before the crash. Maybe the lazy-loaded DLL file got pulled out from under my running process, and it crashed later when it tried to access it with the old runtime paths still in memory but the corresponding files gone from disk.The text was updated successfully, but these errors were encountered: