Build/Test Issues

System.IO.FileNotFoundException : Could not load file or assembly

Started by RobertTheGrey on 8,257 views

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/SparkViewEngine/spark/blob/master/src/Spark.Web.Mvc.Tests/SparkBatchCompilerTester.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
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

Edited

Post a reply

Log in to reply.