Description
Hey there.
We've recently updated mongo from 1.9.X to 2.2.X and we have runtime binding issues.
Assemblies build with 1.9.X wont work with 2.2.X redirection (looks like the old one is strongly signed and new its not).
The error is usual:
Could not load file or assembly 'MongoDB.Bson, Version=1.9.2.235, Culture=neutral, PublicKeyToken=f686731cfb9cc103' or one of its dependencies.
The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Our web.config binding:
<dependentAssembly>
<assemblyIdentity name="MongoDB.Driver" publicKeyToken="f686731cfb9cc103" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.2.3.3" newVersion="2.2.3.3" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="MongoDB.Bson" publicKeyToken="f686731cfb9cc103" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.2.3.3" newVersion="2.2.3.3" />
</dependentAssembly>
Any helper appreciated.
Thanks