arrowHome arrow TechBlog Monday, 23 April 2018  
Main Menu
Home
Quality Snaps
TechBlog
PennCharts
Blog
Family
Auld Frosties
Links
Players
Players (uni)
Players (camb)
Contact Us
Pennchart Recent
pennchart radio

NUnit /noshadow shocker

Today was one of those days…when you realize the limitations of your technical capabilities. Which in my case, is knee-high to a grasshopper.

In the course of trying to inch towards the twenty-first century, Ruprict has yet again saved my bacon from a problem which I thought was intractable.
After unsuccessfully dabbling with CIFactory, we’re using Hudson for continuous integration for our Flex project. It is beautifully simple to install & configure, and seems to be unobtrusive to the developer, except when you break the build and the results are emailed to some of your worst enemies co-developers.

Anyway, I was midway through putting the WCF Rest stuff (thanksbe to redsolo) into Hudson when I started getting bizarre errors upon trying to nunit my test project:

System.IO.FileLoadException : Could not load file or assembly ‘Newtonsoft.Jso
n, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null’ or one of its dependen
cies. Access is denied.

But hang on, the Newtonsoft.Json.dll is in the same folder as the test project, what are you telling me?? So, what had worked perfectly in TDD.net inside Visual Studio (i.e. running my tests) was suddenly not so in nunit-console.exe or the nunit GUI.
So after much faffing around I handed the problem off to Rupes and he found a solution. Should you get this unexpected glitch, try applying the /noshadow tag from commandline (or equivalent option in the gui).

No Comments

Add your own comment...

Frosties RandomSnap
barkley

barkley

top of page