This project has moved and is read-only. For the latest updates, please go here.

Unable to load specific dll for plugin

Mar 13, 2012 at 1:46 AM
Edited Mar 13, 2012 at 6:22 PM

I'm currently using MEF to load plugins for one of my applications. I want to move these plugins outside of the bin directory to a separate plugins directory so other applications can use the plugins. A problem that I'm running into is that one of the plugins is dependent on a custom xml serializing class in a separate dll and when I try to use the particular plugin, I get a "Could not load file or assembly" error when it tries to load the separate dll.

My app.config currently has the following:


  <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

    <probing privatePath="plugins"/>



I had to add probing in order of my original application to work with this particular dll. All plugin dlls were originally located in a subdirectory inside the bin called "plugins". But now that I want to move the plugins into a common directory for all applications, I would I go about fixing this issue? Any assistance would be greatly appreciated.