UnhandledErrorDetected: Unspecified error COMException
As the author confirms in a comment below the question itself, the error can be resolved with a NuGet update. Check dependencies and version history at: https://www.nuget.org/packages/System.Runtime.InteropServices/