Tuesday, December 21, 2021

Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0

 



This was very common at one point (b/w 2017-2020?)


A common solution for:

"Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0"

was putting the following in the web.config:

<runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
       <dependentAssembly>
           <assemblyIdentity name="Newtonsoft.Json"
               publicKeyToken="30AD4FE6B2A6AEED" culture="neutral"/>
           <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0"/>
       </dependentAssembly>
    </assemblyBinding>
</runtime>

No comments: