Build/Test Issues

System.InvalidProgramException on x64 Testproject

Started by danhe on 3,816 views

Hi,

i created a nUnit Testproject for x64 platform to test a x64 project. All my tests fail with this exception:
System.InvalidProgramException : Common Language Runtime detected an invalid program.

To delimit the problem i created a simple TestProject. Only one Testmethod which instantiates a empty class. Same error as in real project.
Here is the test: https://wago.sharefile.eu/d/s15851947cd141c1b

I tryed to change the building target as described here http://www.ncrunch.net/documentation/troubleshooting_x86-x64-platform-issues . But no changes.

My collegue gets the same error if he runs the test locally, if he runs the test on a GridNodeServer they get green.

nCrunch Version: 3.18.0.2

thanks
dan

Hi Dan,

Thanks for sharing this problem.

I think this issue is environment specific. The problem doesn't appear on my own machine.

Has NCrunch ever worked in your environment? Are you running any third party tools that perform IL manipulation, such as JustMock or TypeMock?
Hi,

disabling TypeMock (Typemock -> Integrate with Other Runners) worked well.

Many thanks.

Dan

Edited

Thanks Dan. This may be something you could report to Typemock. They usually take IL corruption issues quite seriously.

Post a reply

Log in to reply.