D
DesperateDan
1/ Got two versions of the same DLL in the GAC called ClassForGac.dll;
V1.0.0.0 & V2.0.0.0 (No problem so far)
2/ Got client.EXE that was compiled against V1.0.0.0. and calls
V1.0.0.0 happily.
3/ Decided to point client.EXE to V2.0.0.0 so I created the policy file
as follows:
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="ClassForGac"
publicKeyToken="ac4d1fbd7d28b4c6" culture="neutral"/>
<bindingRedirect oldVersion="1.0.0.0-1.0.65535.65535"
newVersion="2.0.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
4/ After this I generate the policy file into a DLL
5/ Finally I publish the resulting DLL to the GAC
Question: Why does client.EXE still insist on calling V1.0.0.0
N.B. Same SNK file used throughout (publicKeyToken="ac4d1fbd7d28b4c6" )
Regards
Dan
V1.0.0.0 & V2.0.0.0 (No problem so far)
2/ Got client.EXE that was compiled against V1.0.0.0. and calls
V1.0.0.0 happily.
3/ Decided to point client.EXE to V2.0.0.0 so I created the policy file
as follows:
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="ClassForGac"
publicKeyToken="ac4d1fbd7d28b4c6" culture="neutral"/>
<bindingRedirect oldVersion="1.0.0.0-1.0.65535.65535"
newVersion="2.0.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
4/ After this I generate the policy file into a DLL
5/ Finally I publish the resulting DLL to the GAC
Question: Why does client.EXE still insist on calling V1.0.0.0
N.B. Same SNK file used throughout (publicKeyToken="ac4d1fbd7d28b4c6" )
Regards
Dan