Check LastErrorText immediately after each false return:

Alternatively, using NuGet automatically adds the reference and copies the DLL to your output directory.

using Chilkat;