I have an .NET core 3.1 API project which has reference to third party .NET dll (reference handled through windows compatibility pack).
Getting TypeLoadException inside the catch block (as shown in first screenshot)
The exception object has all details when viewed in debug mode including stack trace details. Getting below exception only when logger tries to read stack trace Information.
Able to see Stacktrace information when viewed through exception object, but get type error when drilled down to exception.Stacktrace
When I try to read stacktrace:


