G
Guest
Hi,
I am trying to prevent an assembly being loaded from GAC and instead want it
loaded from the application's base directory. However, the assembly always
gets loaded from GAC. How to have it loaded from the application directory?
I read about the bindingRedirect trick in the NG, however, specifying
bindingRedirect did not work for me. Also, MSDN library states that
"Application configuration files can have a codebase setting without
redirecting the assembly version".
Here's my app.config:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="BindingTestDLL"
publicKeyToken="8662c4c21e8ecd7e"
culture="neutral" />
<codeBase version="1.0.2096.38102"
href="file:///D:/Develop/Test/FusionTest/FusionTest/BindingTest/bin/Debug/BindingTestDLL.dll" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
I am trying to prevent an assembly being loaded from GAC and instead want it
loaded from the application's base directory. However, the assembly always
gets loaded from GAC. How to have it loaded from the application directory?
I read about the bindingRedirect trick in the NG, however, specifying
bindingRedirect did not work for me. Also, MSDN library states that
"Application configuration files can have a codebase setting without
redirecting the assembly version".
Here's my app.config:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="BindingTestDLL"
publicKeyToken="8662c4c21e8ecd7e"
culture="neutral" />
<codeBase version="1.0.2096.38102"
href="file:///D:/Develop/Test/FusionTest/FusionTest/BindingTest/bin/Debug/BindingTestDLL.dll" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>