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

Notification

Icon
Error

System.IO.FileNotFoundException : Could not load file or assembly
RobertTheGrey
#1 Posted : Tuesday, July 10, 2012 8:39:29 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/10/2012(UTC)
Posts: 6
Location: UK

Thanks: 3 times
Hi there,

I'm running into this exception (System.IO.FileNotFoundException : Could not load file or assembly... ) when running the test via NCrunch. The test is here: https://github.com/Spark...chCompilerTester.cs#L60

It's doing some funky stuff with AppDomain, but this executes just fine under NUnit and ReSharper. I'm not sure if it's something to do with the new Hosted Runners, but even if I set that to False, kill all the NCrunch processes and try again, it still fails. Debugging the test via NCrunch doesn't yield much except that "Assembly" doesn't exist within the context??

I don't mind ignoring this test, but I'd be interested to know why it doesn't work, and I thought it may be a bug in the NCrunch test runner that may show up elsewhere too?

Thanks,
Rob
Remco
#2 Posted : Wednesday, July 11, 2012 6:16:14 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
Hi Rob -

It looks to me like this test is making assumptions about the locations of assemblies required in the sandbox application domain. There is a section of the test troubleshooting guide that explains how you can work around this. Basically, NCrunch wires together test application domains differently to other test runners.

I hope this helps!


Cheers,

Remco
1 user thanked Remco for this useful post.
RobertTheGrey on 7/11/2012(UTC)
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.024 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download