Loading and unloading AppDomains and Assemblies
Posted on 2007-10-12
Is there a way to load an assembly into an AppDomain other than the current AppDomain using the file path to the assembly? I need to be able to load and unload assemblies, so I assumed that the best way to do this is with AppDomains, but I haven't been able to make it work. I need to be able to load an assembly into a newly created AppDomain, get a proxy to a type in the assembly, call methods on the proxy, then unload the AppDomain. And I need to be able to do this all without loading the assembly into the local AppDomain. There must be a way to do this, but I haven't figured it out yet. Does somebody know how to do this? Thanks!