Unloading Assemblies

  • Thread starter Thread starter Arthur Roodenburg
  • Start date Start date
A

Arthur Roodenburg

Hello,

I would like to unload an assembly after I finished my stuff.

I tried to load the assembly in to an AppDomain like this:

AssemblyName asmName = AssemblyName.GetAssemblyName(fullFileName);

Assembly asm = helpAppDomain.Load(asmName);

In this case I get an SerializationException and after some reading I
discovered that the .Load function only works on the
AppDomain.CurrentDomain...

Does anyone know if I can load/unload Assembly Dll's using Appdomain, or is
there another way to explicitely unload an assembly?

Greets,

Arthur
 
Hi Arthur,
Once you load an assembly you cannot unload it. You can only unload
application domains only. Unloading appdomain will unload all assemblies
loaded on it.

HTH
B\rgds
100
 
Back
Top