Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Namespace System.Web.Http.Results not found within asp.net web api application

I have an asp.net web api application in which I have this line :

using System.Web.Http.Results;

My problem is that the namespace isn't recognized, I verified the dll system.Web.Http exists in the bin folder !!

So I need to know:

  • What is the reason of this problem?
  • How can I fix it?
like image 353
Lamloumi Afif Avatar asked Dec 05 '16 14:12

Lamloumi Afif


1 Answers

You need reinstalling the NuGet package, which corrects broken dependencies. Open package manager and run Update-Package Microsoft.AspNet.WebApi -reinstall.

like image 55
Mihai Alexandru-Ionut Avatar answered Nov 18 '22 11:11

Mihai Alexandru-Ionut