Using your exact code snippet, I have successfully run this against the latest version of the library under all .NET builds without error. I even tested it forcing the V1 library without issue. Is the
ShowDialog
method the one throwing the exception or another line?