How to retain the original stacktrace of an exception propagading between processes in .NET Core (.NET 6+) #110103
-
I want to propagate exceptions between .NET Core (.NET 6+) processes and retain the original stacktrace. Currently we use .NET Remoting for inter-process comunication. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Remoting or binary serialization are deprecated and no longer a thing. You must design your own mechanism to format the stack trace. |
Beta Was this translation helpful? Give feedback.
https://learn.microsoft.com/en-us/dotnet/api/system.runtime.exceptionservices.exceptiondispatchinfo.setremotestacktrace?view=net-8.0#system-runtime-exceptionservices-exceptiondispatchinfo-setremotestacktrace(system-exception-system-string)