ASPRUNTIME: The application domain in which the thread is running has been unloaded.
We run Jekins, which starts the gulp build process. As part of the gulp build process, we run the msbuild task .
Every second assembly fails with the message:
ASPNETCOMPILER: ASPRUNTIME Error: The application domain in which the thread is running has been unloaded.
This happens just like any other assembly, regardless of the time interval between assemblies. (i.e. builds, crashes, builds, crashes).
Any ideas on what might be causing this and why this only happens on every other build?
source to share
A bit late to the party, but for googlers: I had a similar problem while creating an assembly in visual studio. It turns out Dropbox is blocking the compiled DLLs. After I excluded the bin directories (are there really obj directories too for good measure), the problem went away. This can also be the case for antivirus and antivirus programs.
source to share