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?

+3


source to share


3 answers


We solved this problem by allocating more memory to the build machine.



+2


source


I also had this problem on a machine with sufficient memory. It turns out that the problem is with the target folder being compressed using NTFS compression.

Once compression was turned off, it started working without issue.



I saw that this could be a problem here .

+5


source


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.

0


source







All Articles