在ASP.NET Web API应用程序中找不到命名空间System.Web.Http.Results [英] Namespace System.Web.Http.Results not found within asp.net web api application
本文介绍了在ASP.NET Web API应用程序中找不到命名空间System.Web.Http.Results的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个asp.net Web api应用程序,其中有以下一行:
I have an asp.net web api application in which I have this line :
using System.Web.Http.Results;
我的问题是无法识别名称空间,我验证了dll system.Web.Http
存在于bin文件夹中!
My problem is that the namespace isn't recognized, I verified the dll system.Web.Http
exists in the bin folder !!
所以我需要知道:
- 此问题的原因是什么?
- 如何解决?
推荐答案
您需要重新安装NuGet软件包,该软件包可以纠正已损坏的依赖关系。打开软件包管理器,然后运行 Update-Package Microsoft.AspNet.WebApi-重新安装。
You need reinstalling the NuGet package, which corrects broken dependencies. Open package manager and run Update-Package Microsoft.AspNet.WebApi -reinstall.
这篇关于在ASP.NET Web API应用程序中找不到命名空间System.Web.Http.Results的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文