在 asp.net web api 应用程序中找不到命名空间 System.Web.Http.Results [英] Namespace System.Web.Http.Results not found within asp.net web api application

查看:61
本文介绍了在 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 -reinstall.

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屋!

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