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=18.104.22.168, 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
asked Sep 14 '14 at 10:41
Well, I have disabled the option "Prefer 32 bit" now, and it works without any error. But I don't understand why.
answered Sep 14 '14 at 11:20
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
answered Sep 15 '14 at 08:10