.net - Assembly Conflict with Newtonsoft.Json -
i need load 2 versions of assembly newtonsoft.json vesion 4.0.8.0 , 4.5.0.0 in config file :
<dependentassembly> <assemblyidentity name="newtonsoft.json" publickeytoken="30ad4fe6b2a6aeed" culture="neutral" /> <bindingredirect oldversion="0.0.0.0-4.0.8.0" newversion="4.0.8.0" /> </dependentassembly>
but need old 4.0.8.0 , new 4.5.0.0
<dependentassembly> <assemblyidentity name="newtonsoft.json" publickeytoken="30ad4fe6b2a6aeed" culture="neutral" /> <bindingredirect oldversion="0.0.0.0-4.0.8.0" newversion="4.5.0.0" /> </dependentassembly>
i install package console last version give me error:
error 80 not load file or assembly 'newtonsoft.json, version=4.5.0.0, culture=neutral, publickeytoken=30ad4fe6b2a6aeed' or 1 of dependencies. located assembly's manifest definition not match assembly reference. (exception hresult: 0x80131040)
i got problem today, found solution in link.
basically update newtonsoft.json package. , register assembly in web.config
<dependentassembly> <assemblyidentity name="newtonsoft.json" publickeytoken="30ad4fe6b2a6aeed" /> <bindingredirect oldversion="0.0.0.0-4.5.0.0" newversion="5.0.8"/> </dependentassembly>
Comments
Post a Comment