system.web.http

System.Web.Http missing in .net Core 2.1

好久不见. 提交于 2020-01-24 04:01:29
问题 System.Web.Http is missing in my .net core 2.1 project. the error states Error CS0234 The type or namespace name 'Http' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) please refer the image for more clarity 回答1: System.Web.Http is not available in dotnet core, but may be referenced by installing the following nuget package: Microsoft.AspNetCore.Mvc.WebApiCompatShim.dll. This will clear the error. Source: https://docs.microsoft.com/en-us/dotnet/api/system

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

偶尔善良 提交于 2019-12-09 21:45:28
问题 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? 回答1: You need reinstalling the NuGet package, which corrects broken dependencies. Open package manager and run Update-Package Microsoft.AspNet.WebApi -reinstall. 回答2: The above solution didn't work for me as it

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

↘锁芯ラ 提交于 2019-12-04 15:57:59
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? You need reinstalling the NuGet package, which corrects broken dependencies. Open package manager and run Update-Package Microsoft.AspNet.WebApi -reinstall. The above solution didn't work for me as it was failing on some other package too. My solution was to delete the packages folder and rebuild the project, which