c# - Assembly while running WebApi.OwinSelfHost in a windows service -


when run application in debug console, find, install service, , trying start it, it's throwing following error:

system.io.fileloadexception: not load file or assembly 'newtonsoft.json, version=6.0.0.0, culture=neutral, publickeytoken=30ad4fe6b2a6aeed' or 1 of dependencies. located assembly's manifest definition not match assembly reference. (exception hresult: 0x80131040) 

i'm running microsoft.aspnet.webapi.owinselfhost 5.2.3 , newtonsoft.json 10.0.2, in .net 4.5 (changing 4.6 soon).

what miss, since service crash badly exception, while running in debug console mode??

updated 16:17: according system.net.http.formatting causing issues newtonsoft.json #2 answer, seems system.net.http.formatting 5.2.3.0 targeting newtonsoft.json 6.0.0.0, although microsoft.aspnet.webapi.client claim have dependency of newtonsoft.json 6.0.4 or higher. 'fix' in linked post removing , adding reference didn't work me, unfortunately. knows how fix this?


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -