Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

An attempt was made to load a program with an incorrect format.
floekke
#1 Posted : Wednesday, March 5, 2014 7:48:47 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/19/2012(UTC)
Posts: 8

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?
Remco
#2 Posted : Wednesday, March 5, 2014 7:54:38 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,123

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
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
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.025 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download