Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.(5)

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

ITtutoria

ITtutoria Logo ITtutoria Logo

ITtutoria Navigation

  • Python
  • Java
  • Reactjs
  • JavaScript
  • R
  • PySpark
  • MYSQL
  • Pandas
  • QA
  • C++
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA
Home/ Questions/Why do i get the trouble with “could not load file or assembly 'newtonsoft.json version=12.0.0.0”?
Next
Answered
Margaret Miller
  • 32
Margaret Miller
Asked: May 18, 20222022-05-18T21:24:14+00:00 2022-05-18T21:24:14+00:00In: csharp

Why do i get the trouble with “could not load file or assembly ‘newtonsoft.json version=12.0.0.0”?

  • 32

. Advertisement .

..3..

. Advertisement .

..4..

I am trying to write a csharp that returns an invalid answer. I don’t know where the incorrect command is in the “could not load file or assembly ‘newtonsoft.json version=12.0.0.0.”
My detail is:

<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
  <HintPath>..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
 </Reference>
<?xml version="1.0" encoding="utf-8"?>
 <configuration>
  <startup> 
  <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
  </startup>
  <runtime>
  <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  <dependentAssembly>
  <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
  <bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.3.0" />
  </dependentAssembly>
  </assemblyBinding>
  </runtime>
 </configuration>

and I end up with the warning message:

System.IO.FileNotFoundException: 'Could not load file or assembly 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. The system cannot find the file specified.'

Pls, suggest the best answer to fix it.

could not load file or assembly newtonsoft.json
  • 2 2 Answers
  • 53 Views
  • 0 Followers
  • 0
Answer
Share
  • Facebook
  • Report

2 Answers

  • Voted
  • Oldest
  • Recent
  • Random
  1. Best Answer
    hdtutoria Expert
    2022-06-25T06:31:21+00:00Added an answer on June 25, 2022 at 6:31 am

    The cause: The cause of this error is that a version incompatibility. It says in your error that the library version “12.0.0.0” could not be found. The version stated in your configuration reference is “12.0.3.”

    Solution: You can fix this error by uninstalling the nugets, checking in, reinstalling them and building (and checking in again)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  2. Jules Picot
    2022-05-25T21:18:23+00:00Added an answer on May 25, 2022 at 9:18 pm

    In my case, I installed V 12.0.0.3 using the Nuget package. I received the same error. Based on my personal experience, Some NewtonSoft version are having trouble with Visual Studio.

    If you only require deserialize or serialize functionality you can solve your problem by reinstalling the Newtonsoft current solution and installing the version 6.0.3

    This version is compatible with different versions of visual studio.

    • 18
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question
  • How to Split String by space in C++
  • How To Convert A Pandas DataFrame Column To A List
  • How to Replace Multiple Characters in A String in Python?
  • How To Remove Special Characters From String Python

Explore

  • Home
  • Tutorial

Footer

ITtutoria

ITtutoria

This website is user friendly and will facilitate transferring knowledge. It would be useful for a self-initiated learning process.

@ ITTutoria Co Ltd.

Tutorial

  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA

Legal Stuff

  • About Us
  • Terms of Use
  • Privacy Policy
  • Contact Us

DMCA.com Protection Status

Help

  • Knowledge Base
  • Support

Follow

© 2022 Ittutoria. All Rights Reserved.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.