Archived Forum Post

Index of archived forum posts

Question:

Invalid Format on Windows Server 2013

Oct 12 '15 at 15:56

Greetings

I get the following error when running the DLL in a Windows 2013 server environment

[BadImageFormatException: Could not load file or assembly 'ChilkatDotNet4' or one of its dependencies. An attempt was made to load a program with an incorrect format.]

The server is running the application in the Net 4 application pool

The DLL works perfectly in the VS 2010 Net 4 development environment

Has anyone any hints, it seems not an issue with the ChilKat DLL but something to do with the server set-up

Thanks and Regards


Answer

Is the server 64-bit and you've compiled this as 32-bit? Or visa-versa?