Appdomain recycles

C

Chris van de Steeg

In iis6 there is this feature to recycle your appdomain at certain
tresholds, great.

But I recently ran into strange problems when my appdomain was recycled.
When my application starts, it loops through all the assemblies it gets
from System.AppDomain.CurrentDomain.GetAssemblies(). This works great
when the application starts for the first time, I really do get all
assemblies that are in my bin-folder. However, when my worker-process
gets killed, the next application start will NOT return all the
assemblies in the bin folder. It will only return the assemblies that
are used up untill that moment. However, changing the bin folder,
somehow triggers a different recycle: this one DOES load all assemblies
from my bin folder.

Conclusion: there are 2 types of recycles

* one that does load all assemblies from ‘bin’ into the appdomain
as the application starts. And
* one that only loads the assemblies from ‘bin’ into the appdomain
as soon as they’re needed.

I didn’t exactly figure out what causes this, and why it is done so.
Does anyone know how to ensure all my assemblies are loaded at a recycle
also?

Regards,
Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top