Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASPRUNTIME: The application domain in which the thread was running has been unloaded.

We're running Jekins which kicks off a gulp build process. As part of the gulp build process we trigger an msbuild task.

Every second build fails with the message:

ASPNETCOMPILER : error ASPRUNTIME: The application domain in which the thread was running has been unloaded.

This happens exactly every other build no matter the time span between builds. (i.e. Builds, Fails, Builds, Fails).

Any ideas on what might be causing this and why it happens only every other build?

like image 303
Jamie Dixon Avatar asked Apr 22 '15 11:04

Jamie Dixon


2 Answers

I also had this problem on a machine with enough memory. Turns out the problem was due to the target folder being Compressed using NTFS compression.

Once compression was disabled it started working without problems.

I saw that this could be a problem here.

like image 108
Pablo Montilla Avatar answered Sep 29 '22 00:09

Pablo Montilla


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

like image 33
Jamie Dixon Avatar answered Sep 29 '22 02:09

Jamie Dixon