A solution not sure to unload an assembly is to create a second
appdomain who list the loaded assemblies. When you want to unload an
assembly, you remove this assembly of the list ( stored in the second
appdomain ), then you delete the first appdomain, and you create the
first appdomain with all assemblies listed. This solution is dangerous
when you have links between assemblies, and you lost your execution
context. But it is the only solution, to unload One assembly.
Clément
[quoted text, click to view] Shiva wrote:
> Hi,
> Assemblies cannot be unloaded. You have to load them in a separate app
> domain and unload that app domain when assemblies have to be unloaded.
>
> "Xavi Sam" <jamaa@tid.es> wrote in message
> news:eyZfREAjEHA.712@TK2MSFTNGP09.phx.gbl...
> Hi
>
> I know how to load a assembly form specified directory, using
> Assembly.LoadFrom but How can I unload it? Is there something similar to
> FreeLibrary?
>
> Thanks in advance
>
> Javier
>
>