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

Notification

Icon
Error

System.InvalidProgramException on x64 Testproject
danhe
#1 Posted : Friday, August 10, 2018 10:32:35 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/10/2018(UTC)
Posts: 2
Location: Germany

Thanks: 1 times
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/d...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

Remco
#2 Posted : Friday, August 10, 2018 11:27:47 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
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?
1 user thanked Remco for this useful post.
danhe on 8/13/2018(UTC)
danhe
#3 Posted : Monday, August 13, 2018 7:18:53 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/10/2018(UTC)
Posts: 2
Location: Germany

Thanks: 1 times
Hi,

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

Many thanks.

Dan
Remco
#4 Posted : Tuesday, August 14, 2018 1:02:15 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Thanks Dan. This may be something you could report to Typemock. They usually take IL corruption issues quite seriously.
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.028 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download