Question:
Can you help me with this problem,
An unhandled exception of type 'System.BadImageFormatException' occurred in App.exe Additional information: Could not load file or assembly 'ChilkatDotNet45, Version=9.5.0.65, Culture=neutral, PublicKeyToken=eb5fc1fc52ef09bd' or one of its dependencies. An attempt was made to load a program with an incorrect format.
My project have the reference to ChilkatDotNet45.dll(32-bits) and it's compile to 32-bits. There is a solution for this problem?.
This is "Common Error #1" described on each Chilkat .NET download web page, such as here: https://www.chilkatsoft.com/x64_Framework46.asp
Also, for any error message, it's productive to Google (or Bing, DuckDuckGo, etc.) the error message in conjunction with the keyword "chilkat". For example, Google "chilkat attempt was made to load a program with an incorrect format".
Hello, I updated my system from VS2008 to VS2015 and wanted to start with a new nuget version of Chilkat (9.5.0.65). When I start the application (web application), I get the error: [BadImageFormatException: Die Datei oder Assembly "ChilkatDotNet46" oder eine Abhängigkeit davon wurde nicht gefunden. Es wurde versucht, eine Datei mit einem falschen Format zu laden.]
I have Debug and Any CPU selected on a Win10 64-bit System. It seems, that there is no option for prefer 32-bit to disable in Website-Project. What could be the reason for the error? Thank you in advance, Reinhard