Thursday, April 30, 2015

AppDomain is refusing to find dll dependencies

"The aim was to use the MarshalByRef to load the plugins into the secondary domains only."

Yes but you ended up returning the Assembly object from the plugin appdomain to the main appdomain and that defeats the purpose of the loader. Whatever work (GetTypes, IsAssignableFrom etc.) you need to do with the plugin assembly needs to happen in the plugin domain.

The main domain should only see plugin interfaces from the core assembly, it should never get Assembly or Type objects from the plugin appdomain.

No comments:

Post a Comment