c# - Could not load file or assembly Newtonsoft.Json -
this question has answer here:
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
Post a Comment