Assembly Resolver ignores PrivateBinPath

Posted by user472875 on Stack Overflow See other posts from Stack Overflow or by user472875
Published on 2012-04-04T23:25:12Z Indexed on 2012/04/04 23:29 UTC
Read the original article Hit count: 152

Filed under:
|

I have an assembly I would like to load from a sub-folder of the appbase. I set that sub-folder in the PrivateBinPath during AppDomain creation.

The issue is that I have another version of the same DLL in the appbase. From the way it looks, the resolver detects the wrong version first, says that there is a mismatch and stops. As a result the correct version (located in the sub-folder) never gets loaded.

I have tested this by removing those DLLs in the appbase and it fixed the problem. Is there any way to force the search even if the wrong version is found?

© Stack Overflow or respective owner

Related posts about c#

Related posts about assembly