Over the last year or so I have been working predominantly with ASP.NET and for that reason alone I have tended to not have to deal directly with the GAC and some of its finer benefits (specifically side by side execution). So I thought I would go over one of the benefits of bindingRedirect.
Obviously the prerequisite to installing assemblies in the GAC include creating strong name key file, associating it with the assembly and installing it in the GAC, and so I created two version of an assembly.
In my test application I configured and tested against 184.108.40.206, and so based on that fact, the test application would call 220.127.116.11 . In order to ensure that I can use version 1.2 at will I needed to create and\or modify the App.Config file to use the bindingRedirect element as follows.
<configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="TestLib" /> <bindingRedirect oldVersion="18.104.22.168" newVersion="22.214.171.124"/> dependentAssembly> assemblyBinding> runtime> configuration>