I am using MEF to import my dlls, the development environment I am using is VS 2008 where I created the main app & the dlls that are imported -
When I copy the dll's to a separete directory & then read them in from that directory - I get the following error:
"Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information." seems like it can't find all the dlls
but when I load them in from the actual directory in which they were created then it works fine C:\Users\Documents\Visual Studio 2008\Projects\MyApp\MyControl\bin\x86\Debug\MyControl.dll
So my question is how can I make it work that it loads the dlls properly no matter where they are?