I have tested the below suggestion locally which works perfectly however when I deploy my app to a test server I get the following error.
Could not load file or assembly 'ChilkatDotNet4.dll' or one of its dependencies. The specified module could not be found.
I have checked that the ChilkatDotNet4.dll is on the server and it is. If I change my application to using the ChilkatDotNet2.dll it all works without issue. Would this be due to the trial version of the DotNet4 dll as I am waiting for a activation key or is there some other issue?
The Chilkat .NET assembly is a mixed-mode assembly, meaning that the internal implementation is written in C++ and compiles to native code. Given that it is created using Visual Studio 2010 (using VC++), the Microsoft VC++ 2010 runtime libs need to be present on the computer. You don't see the problem with the 2.0/3.5 Framework because that Chilkat assembly is compiled/linked with Visual Studio 2005, and virtually every Windows computer in existence already has the VC++ runtimes for that version already installed. I'm sure in due time the same will be true for the 2010 runtimes.
The VC++ 2010 redistributables can be downloaded and installed from:
Thank you, I appreciate the reply.
Just installed x64 Microsoft Visual C++ 2010 SP1 Redistributable Package and I still get the same error. Any other ideas?