loveforfire33
loveforfire33

Reputation: 1118

Could not load file or assembly, newtonsoft.json

I have a c# console application that is using JSON and it works fine when run on my development machine. When i try to move the application to another machine to run it i get the following exception when it comes to the part of my code which requires json:

Could not load file or assembly, newtonsoft.json 4.5.0.0

I presume i need to download/install this on the machine i want to run the application on. How would i go about doing that?

Upvotes: 2

Views: 836

Answers (2)

spender
spender

Reputation: 120518

Locate the missing assembly in the solution explorer (under references), right-click and select properties, then select

copy local: true

and the dll will be copied to your output folder and should be distributed with your program.

Upvotes: 0

Sunny
Sunny

Reputation: 4809

Download the Newtonsoft.Json.dll from http://json.codeplex.com/releases/view/107620 and place it in application's BIN folder.

Upvotes: 3

Related Questions