Reputation: 2970
I am getting this error:
Could not load file or assembly 'Newtonsoft.Json, Version=8.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
I can't seem to fix this, tried adding different Newtonsoft.json dll's. But it just won't run. Let me know what I am doing wrong. Thanks
Upvotes: 0
Views: 118
Reputation: 2852
I commonly see this issue when I have different versions of a library whose types are used across two assemblies. I suggest you check the version of Json.Net is consistent across all your assemblies/dependencies.
If you installed it with nuget in visual studio, try using the 'consolidate' option in the package manage to detect version mismatches. Ensure you also read any compiler warnings (not just errors) as these can help greatly in this case.
Upvotes: 1