I developing Asp.MVC project with UmbracoCms 7.10.4. Umbraco has dependency "AutoMapper (>= 3.3.1 && < 4.0.0)". Now I need to payment gateway. I using eWay payment gateway. I load eWayRapid.Sdk to my project. But this SDK has dependency "AutoMapper (>= 6.2.2)". When I try create ewayClient object project return exception (Could not load file or assembly 'AutoMapper, Version=6.2.2.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)). I see that while building project add AutoMapper dll version 3.3.1 to "bin" folder.
I tried add this code to config:
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="thirdparty" culture="neutral" publicKeyToken="1234567890123445"/>
<bindingRedirect oldVersion="4.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
<codeBase version="4.0.0.0" href="thirdparty4\thirdparty.dll" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="thirdparty" culture="neutral" publicKeyToken="1234567890123445"/>
<bindingRedirect oldVersion="5.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
<codeBase version="5.0.0.0" href="thirdparty5\thirdparty.dll" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
But it not fix my problem.
User contributions licensed under CC BY-SA 3.0