Monday, December 03, 2007

Cruise Control.Net cannot find NUnit

I am setting up a continuous integration server for a project that I am working on. I had an interesting problem, my nant script was building without a problem, but when I ran it under cc.net, it failed. It turns out that NUnit was registered only under my user account, whereas the cc.net service was running under the system account and didn't have knowledge of some environment variables. The fix was go to the services and right click on the cc.net service, change to log on as option to the user that has access to those environment variables, then restart the service ... simple enough