c# - Could not load file or assembly Newtonsoft.Json -


i trying use json.net in c# write json file. when build code builds fine , creates parser.exe fine. when try run parser.exe on seperate server needs run gives me error

system.io.filenotfoudexception: not load file or assembly  'newtonsoft.json, version=10.0.0.0, culture=neutral, publickeytoken=30ad4f...'  or 1 of dependencies. system cannot file file specified.  

do need copy newtonsoft dll server needs run. appreciated.

make sure referenced dll set deployed bin folder right clicking on reference, selecting properties , setting copy local true.

update:

what's happening have dll referenced locally when deploy program, it's missing target machine.

by setting reference copied, bin folder have copy of long deploy (including bin folder), should work.


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -