What I am trying to do:
Upon building my solution for the first time, I see errors related to missing namespaces. They have a code of
CS0234: The type or namespace name 'Http' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
What I have tried so far and didn't work for me:
System.Web.Http missing after .net 4.5 upgrade
System.Net.Http: missing from namespace? (using .net 4.5)
Can't add a reference to my project - it simply doesn't detect it
What I am trying to do from my own end but doesn't seem to work:
On Nuget's official website I am trying to install this package using Package manager command:
PM> Install-Package System.Web.Http -Version 4.0.0
But, I see the following error on the console
What I want from you:
At this point, the only way to resolve this issue is by reaching out to one of my other team members and ask them to send me the missing .dll
.But I would encourage an answer that would help me get through this issue by pointing to the root cause of this problem and if there is an alternate way to get this missing reference.
Useful note:
I am building this solution on Visual Studio 2019 and the solution points to .net framework version 4
. I have come across answers that suggest changing the framework version to 4.5
. But even after that I could not find the .dll in References(Yes, I have checked extensions and framework)