This error code is the most general of all, it means that something went wrong :( If an unhandled exception is causing an error in the managed code, you will be able to get more information in the
application log. Filter for errors with
.NET Runtime as source.
Don't let exceptions be unhandled. Add logging to your code.
NLog[
^] is a good one.