S
Sebastien Lange
Hi,
My application must load dynamically some assemblies (plugins).
Theses plugins use a third party assembly.
I'm using Assembly.Load to load my plugin and everything's working fine.
If the third party software is recompiled (no break, just bug correction),
normally I should recompile the plugins. But I don't want.
So I created a config file (myApp.exe.config) to redirect to the correct
third party dll. (the config file is ok, it has been tested by another apps)
Now, I installed a new version of the third party, and tried again my app.
Assembly.Load throws an exception (FileLoadException) because it can't find
the correct dll (the one that was referenced by the plugin) and does not
seems to use the config file, no trace in the log.
How can I force it to look in the config file when loading dynamically
assemblies?
I know I can by creating a second AppDomain, but I'd like to find a easier
solution.
Sebastien
My application must load dynamically some assemblies (plugins).
Theses plugins use a third party assembly.
I'm using Assembly.Load to load my plugin and everything's working fine.
If the third party software is recompiled (no break, just bug correction),
normally I should recompile the plugins. But I don't want.
So I created a config file (myApp.exe.config) to redirect to the correct
third party dll. (the config file is ok, it has been tested by another apps)
Now, I installed a new version of the third party, and tried again my app.
Assembly.Load throws an exception (FileLoadException) because it can't find
the correct dll (the one that was referenced by the plugin) and does not
seems to use the config file, no trace in the log.
How can I force it to look in the config file when loading dynamically
assemblies?
I know I can by creating a second AppDomain, but I'd like to find a easier
solution.
Sebastien