Hi,
Its strange that we could not know where the exception happens. I suspect it happens in the third party libraries. So we need to find out where the exception happens first. If you run your app without the third party library-Metrolog, does the exception
exists? If the exception does't exist, the problem is more related to the third party library and you might need to ask about this in Metrolog's forum.
If the exception exists without Metrolog, please find out the steps to reproduce the problem and we shall see where the problem is.
The sample you given is using Metrolog, please try to confirm if this problem only happens when you are using Metrolog.
Best regards,
Roy
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to
MSDN Support, feel free to contact MSDNFSF@microsoft.com.