Let me try to understand what you are doing a bit more clearly ...
When you say Assembly Cache, are you referrring to the Global Assembly Cache or something else?
You have your application running with an existing version of an assembly. You then build another version and deply it to the cache (GAC?). Do you restart your application to get the new version? or does it somehow "know" the new version is there and load it without restarting?
You are right about not being able to unload an assembly without unloading the entire AppDomain.
Regards
Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog http://www.dotnetconsult.co.uk
I have an application which loads assemblies from assembly cache. Assembly
cannot be unloaded from memory without unloading the entire AppDomain, so
every time I compile assemblies with new versions, its loaded to my
application and the old ones remain in memory. Do I understand right the
whole process, so it causes memory leak?