CannotUnloadAppDomain Mbunit and CCNET

290 views Asked by At

Our CCNET build system has been running just fine since we set it up. Recently we moved to another room and changed one IP address on our system and we are getting CannotUnloadAppDomainException from MbUnit which is run from NCover. I have checked our SVN logs to make sure there were no changes and there aren't. Has anyone experienced this before or have any ideas what I should be looking for?

1

There are 1 answers

2
Yann Trevin On BEST ANSWER

Gallio runs your tests in IsolatedAppDomain mode by default. The error indicates that the AppDomain sandbox cannot be unloaded probably due to a critical error involving resource lock, multi-thread race condition, or something like an out of memory issue or a stack overflow.

You certainly need more information to diagnose the root cause of the problem. What you can do:

  • Run manually your tests with Gallio.Echo and have a look at the test report or at the console output.
  • You may also want to run your tests in IsolatedProcess or Local modes instead. This will make the whole process to collapse faster; it may highlight the underlying issue.
  • You could also ask the question in the Gallio User Group.