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
This line of code produces the error below: var target = DataTarget.CreateSnapshotAndAttach(Process.GetCurrentProcess().Id);
System.EntryPointNotFoundException: Unable to find an entry point named 'PssCaptureSnapshot' in DLL 'kernel32.dll'.
at Microsoft.Diagnostics.Runtime.WindowsProcessDataReader.PssCaptureSnapshot(IntPtr ProcessHandle, PSS_CAPTURE_FLAGS CaptureFlags, Int32 ThreadContextFlags, IntPtr& SnapshotHandle)
at Microsoft.Diagnostics.Runtime.WindowsProcessDataReader..ctor(Int32 processId, WindowsProcessDataReaderMode mode)
at Microsoft.Diagnostics.Runtime.DataTarget.CreateSnapshotAndAttach(Int32 processId)
at ServerAdminPlugin.StackTraceAnalyzer.GetAllStackTraces()
Environment: .NET 5 app running on Windows Server 2008 R2 Standard, with, among other things, latest .NET 5 SDK installed. Same error happens on .NetFramework 4.8 app running on Windows Server 2008.
Same code works on dev machine (Win 10).
End result is this terminates the app, even though it's wrapped in try-catch.
The text was updated successfully, but these errors were encountered:
This line of code produces the error below:
var target = DataTarget.CreateSnapshotAndAttach(Process.GetCurrentProcess().Id);
System.EntryPointNotFoundException: Unable to find an entry point named 'PssCaptureSnapshot' in DLL 'kernel32.dll'.
Environment: .NET 5 app running on Windows Server 2008 R2 Standard, with, among other things, latest .NET 5 SDK installed. Same error happens on .NetFramework 4.8 app running on Windows Server 2008.
Same code works on dev machine (Win 10).
End result is this terminates the app, even though it's wrapped in try-catch.
The text was updated successfully, but these errors were encountered: