找不到命名空间'newtonsoft' [英] Namespace 'newtonsoft' can't be found

查看:140
本文介绍了找不到命名空间'newtonsoft'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的.Net应用程序(FW 4.0)中,我将Newtonsoft.Json(运行时版本:v4.0.30319,版本:9.0.0。)添加到参考文献中。在.ashx中,我添加了

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

using Newtonsoft.Json;



但是,Newtonsoft.Json下会显示一条红色曲线,提示显示:


However, a red-curve line displays under the Newtonsoft.Json, and the tip shows:

Namespace 'Newtonsoft' Cannot be found



我错过了什么吗?谢谢。



我尝试了什么:



命名空间'Newtonsoft'即使它在引用中也找不到


Did I miss something? Thanks.

What I have tried:

Namespace 'Newtonsoft' Can't be found even though it is in the References

推荐答案

你是否在bin文件夹中包含了相应的Newtonsoft.Json.dll?



尝试将dll放入项目bin文件夹
Have u included the corresponding Newtonsoft.Json.dll in your bin folder ?

Try by placing that dll in your project bin folder


尝试从nuget包下载newtonsoft dll,如果它在包中,请检查你的包文件夹,如果它不在包文件夹中,然后重新安装它,它将工作。
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.


这篇关于找不到命名空间'newtonsoft'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆