I will reinstall VS and components. And do a new test.
I verified that this error only occurs if I try to use some text with HTML. Without html I have no problems.
I don't know if it helps, but in the exception I
have an error code returned -2147467259
Hello, I think I discovered the problem, your example works,
and I started looking for differences between my project and the example.
I noticed that the example was in the 4.5.1 framework and mine in the 4.8. So I changed the target of the example to version 4.8 and the error happened.
I redid the tests and the error appears from version 4.7.1.
Please change the target
to version 4.8 and test the example.