Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my .Net app (in FW 4.0), I added Newtonsoft.Json (Runtime version: v4.0.30319, Version: 9.0.0.) into the References. In the .ashx,I added
C#
using Newtonsoft.Json;

However, a red-curve line displays under the Newtonsoft.Json, and the tip shows:
C#
Namespace 'Newtonsoft' Cannot be found

Did I miss something? Thanks.

What I have tried:

Namespace 'Newtonsoft' Can't be found even though it is in the References
Posted
Updated 29-Sep-16 2:48am

Have u included the corresponding Newtonsoft.Json.dll in your bin folder ?

Try by placing that dll in your project bin folder
 
Share this answer
 
Comments
s yu 29-Sep-16 11:00am    
Great! Thanks.
Try to download newtonsoft dll from nuget package, and if it there in package then check in your package folder and if it is not in package folder then reinstall it and it will work.
 
Share this answer
 
Comments
s yu 29-Sep-16 11:00am    
Great! Thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900