AppDomainUnloadedException with NUnit, a ServiceHost and several other technologies

All tests ok, but still a NUnit failure?

Seeing unexplicable “System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain.” errors?

You might be a victim of nunit’s bug #423611.

See also here, here and here.

A typical error message looks like this:

Unhandled exceptions:
1) : System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain.

I’ve uploaded a minimal solution exhibiting the problem to the bugreport and I hope that’ll help clearing the issue up.

One Response to “AppDomainUnloadedException with NUnit, a ServiceHost and several other technologies”

  1. Matt Salmon says:

    Is there any workaround for this? Will nunit 3 sort this out?

Leave a Reply