Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do I sort out my web.config that is giving me Json issues

It gives me an error that reads: "Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference".

Please assist on how I can solve this issue.
Posted
Comments
F-ES Sitecore 27-Jul-15 17:55pm    
Have you used nuget to install Newtonsoft Json? Is the assembly in the bin folder?

1 solution

Your compiled code is different from the version the runtime is trying to load.

The compilation process is creating an assembly with reference to version Newtonsoft.XX.dll - but at runtime the bin folder of your website probably contains a different version Newtonsoft.XY.dll.

You can make sure the runtime and design time assemblies used are the same - cross check properties of references in your Visual Studio project against the files produced by publishing your website - to figure out why the runtime cannot load up correct version.

Or you can look into adding Assembly Binding Redirection[^] instructions in the web.config file.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900