I'm using ninject xml extension to congire different DAL's for the same executable (plugins). My idea was to put all of them (DLLs) in a subfolder of the main application with the ninject xml files.
The problem is that ninject cannot find the referenced binding in the xml. It works only if i copy the dlls to the same folder of the main application (.exe).
I tried to load the dlls before loading the kernel
Assembly assembly = Assembly.LoadFrom(dll);
AppDomain.CurrentDomain.Load(assembly.GetName());
Kernel.Load(xmlFile);
But still doesnt work. (Error: "Couldnt resolve type 'MyType' defined in 'to' attribute")
Does anybody know some way to refer a concrete folder at the ninject-xml file or loading types from another folder that can be resolved using ninject-xml extension?