Archived Forum Post

Index of archived forum posts

Question:

ResGen.exe error: An attempt was made to load a program with an incorrect format

Feb 18 '13 at 11:09

Normally, the "incorrect format" error is easily solved by making sure to load the correct Chilkat assembly based on whether the process is 32-bit or 64-bit. 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

The one other case where difficulty can arise, which is somewhat rare, is explained here:

http://blogs.msdn.com/b/visualstudio/archive/2010/06/19/resgen-exe-error-an-attempt-was-made-to-load-a-program-with-an-incorrect-format.aspx


Answer

(This post is by default already answered.)