简体   繁体   中英

Could not load file or assembly 'Newtonsoft.Json, Version=3.5.0.0. The system cannot find the file specified

After trying to publish my asp.net website I have encountered the error

Could not load file or assembly 'Newtonsoft.Json, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b9a188c8922137c6' or one of its dependencies. The system cannot find the file specified.

I tried clearing up the Temporary Folder but still the same issue occurs. Any help with this? I can't even debug my own web site because of the error above. By the way, I'm using Visual Studio 2008, and I am running on Windows XP.

You must check path property of your assembly Newtonsoft.Json , verify that you have assembly in this location

I suggest you to set Local Copy to false and define common repository for all assemblies.

Me and a colleague was able to resolve this issue. It turns out that we are using Newtonsoft.Json without our knowledge and that we are also using the wrong version. Thanks for helping out everyone :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM