Unloading Assemblies

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
 
1

100

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
 

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

Top