0

when i create a new web api application in visual studio 2017 I face this error message

enter image description here

enter image description here

enter image description here can anybody tell how to resolve this issue.

Ali Kazmi
  • 45
  • 1
  • 8
  • Try restoring the NuGet packages: https://stackoverflow.com/questions/50392418/cant-restore-nuget-packages – Pete -S- Jul 25 '20 at 20:54
  • no luck restoring the packages. it says all packages are already installed and uptodate – Ali Kazmi Jul 25 '20 at 21:00
  • Try to explicitly set the deployed version to 32bit – Dimi Takis Jul 25 '20 at 21:48
  • Someone already mentioned, looking at the bitness (32-bit vs 64-bit), what is odd is all the SYSTEM.Web namespaces that are missing. This may be a extreme, what about repairing the Visual Studio install? Definitely keep us updated if you resolve this issue. – Pete -S- Jul 26 '20 at 14:51

1 Answers1

0

Restart Visual studio. Hope it will fixed. Sometime it occurs because of caching

reza ul
  • 9
  • 3
  • stile problem is same i tried installing the packages from nuget but following two are not getting fixed. system.net.http.formatting system.web.http.webhost i tried installing different extentions suggest on different forums but no luck with these two – Ali Kazmi Jul 25 '20 at 21:35
  • you can install from package manager console. https://www.nuget.org/packages/WebApiDoodle.Net.Http.Formatting/3.0.0-pre01 – reza ul Jul 25 '20 at 22:53