1

I am using Newtonsoft.Json assembly for Deserializing Json response. Solution builds fine, deploys fine. But when the json response is to be deserialized, I get "Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified."

Any suggestion is appreciated.

Thanks!!

1 Answer 1

2

You have to check if the NewtonSoft DLL is in the global assembly cache. You have to add it manually using "gacutil /i" in Visual Studio Console or deliver it with the solution package.

1
  • if you got the error like "This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded", find the solution in here: herlitz.nu/2011/11/19/…
    – Tito
    Jun 8, 2016 at 13:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.