"ProfilingApiException: Invalid call sequence" when using the dotTrace SDK

(Das war meine Antwort mit der Lösung)

Since you gave me certainty that your SDK library is rock solid and has no side-effects, I started invesgitaging my own business logic:

I’ve added reference counting for starting and ending the profiling.

Finally, I found the cause and it was actually a mismatch in start/stop of the profiling

(It was actually a bit more complicated but nevertheless purely 200% my own fault).

So thanks a ton for pushing me in the right direction and solve the issue.