Daily Usage Issues

An attempt was made to load a program with an incorrect format.

Started by floekke on 6,165 views

Hi

I'm getting the following error when trying to run some tests:

SetUp : System.BadImageFormatException : Could not load file or assembly 'file:///C:\Users\fsl\AppData\Local\NCrunch\1140\7\_ncrunchreferences\clrzmq.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.
TearDown : System.NullReferenceException : Object reference not set to an instance of an object.

I've tried changing the 'Use CPU architecture' to x64 with no luck.

Any suggestions?
Hi,

Thanks for sharing this issue.

The cause of the BadImageFormatException is almost always related to an x86 assembly being loaded into an x64 environment, or vice versa.

The rules around x86/x64 are slightly different for NCrunch. If you haven't already, I recommend having a read of this troubleshooting page which can give you an in-depth description of how things are different and how you can solve problems such as this. Let me know if this page doesn't do the trick, and I'll try to help you further.


Cheers,

Remco

Post a reply

Log in to reply.