Reflections - How to load unloaded dependencies
Hi,
I'm loading assemblies using reflections. When loading some assemblies it throws as exception saying that
"Could not load file or assembly 'MyAssemblyname, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.":"MyAssemblyname, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"
This is Ok because there is a dependency(assembly) which the original assembly refers and which was not loaded.
My question is how can I load the unloaded assembly by identifying these dependencies dynamically when an assembly failed to load due to these kind of dependencies.
Cheers
Nalaka
|