I get the message
BindingFailure occred. Message: The assistant for managed debugging has detected a ""BindingFailure"" in ""D:DevProjectsMyAppbinDebugMyApp.vshost.exe"". Additional Information: The assembly "ChilkatDotNet45" could not be loaded in the "Load"-Binding context of AppDomain ID 1. Error: System.BadImageFormatException: The file or assembly "ChilkatDotNet45, Version=184.108.40.206, Culture=neutral, PublicKeyToken=eb5fc1fc52ef09bd" or one of its dependencies was not found. It was attempted to load a file with the wrong format.
Can you help?
ps: I am using VS 2013 Ultimate System: Windows 7, 64 bit Debug configuration: Any CPU, Prefer 32 bit
Well, I have disabled the option "Prefer 32 bit" now, and it works without any error. But I don't understand why.
The "Prefer 32 bit" option in your Visual Studio project settings, if set, causes your application to run as a 32-bit process on any computer including 64-bit computers. If this is the case, then make sure to use the 32-bit Chilkat .NET assembly. See http://www.chilkatforum.com/questions/114/64bit-could-not-load-file-or-assembly-chilkatdotnet4-or-one-of-its-dependencies-an-attempt-was-made-to-load-a-program-with-an-incorrect-format