Click here to Skip to main content
15,742,477 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I tried many package but also System.Net.HTTP.Formatting is not getting installed.
Below are the packages I had installed but also am not finding that System.Net.HTTP.Formatter

What I have tried:

Added package 'WebApiDoodle.Net.Http.Formatting.2.0.1' to 'packages.config'
Successfully installed 'WebApiDoodle.Net.Http.Formatting 2.0.1' to WebApplication5
Removing package 'Microsoft.AspNet.WebApi.Client.5.0.0' from folder 'c:\Users\dell 3555\Documents\Visual Studio 2015\Projects\WebApplication5\packages'
Removed package 'Microsoft.AspNet.WebApi.Client.5.0.0' from folder 'c:\Users\dell 3555\Documents\Visual Studio 2015\Projects\WebApplication5\packages'
Removing package 'WebApiDoodle.Net.Http.Formatting.3.0.0-pre01' from folder 'c:\Users\dell 3555\Documents\Visual Studio 2015\Projects\WebApplication5\packages'
Removed package 'WebApiDoodle.Net.Http.Formatting.3.0.0-pre01' from folder 'c:\Users\dell 3555\Documents\Visual Studio 2015\Projects\WebApplication5\packages'
PM> install-package Microsoft.AspNet.WebApi.Client
Attempting to gather dependency information for package 'Microsoft.AspNet.WebApi.Client.5.2.3' with respect to project 'WebApplication5', targeting '.NETFramework,Version=v4.5.1'
Attempting to resolve dependencies for package 'Microsoft.AspNet.WebApi.Client.5.2.3' with DependencyBehavior 'Lowest'
Resolving actions to install package 'Microsoft.AspNet.WebApi.Client.5.2.3'
Resolved actions to install package 'Microsoft.AspNet.WebApi.Client.5.2.3'
Removed package 'Microsoft.AspNet.WebApi.Client.4.0.20710' from 'packages.config'
Successfully uninstalled 'Microsoft.AspNet.WebApi.Client.4.0.20710' from WebApplication5
  GET https://api.nuget.org/packages/microsoft.aspnet.webapi.client.5.2.3.nupkg
  OK https://api.nuget.org/packages/microsoft.aspnet.webapi.client.5.2.3.nupkg 24ms
Installing Microsoft.AspNet.WebApi.Client 5.2.3.
Adding package 'Microsoft.AspNet.WebApi.Client.5.2.3' to folder 'c:\Users\dell 3555\Documents\Visual Studio 2015\Projects\WebApplication5\packages'
Added package 'Microsoft.AspNet.WebApi.Client.5.2.3' to folder 'c:\Users\dell 3555\Documents\Visual Studio 2015\Projects\WebApplication5\packages'
Added package 'Microsoft.AspNet.WebApi.Client.5.2.3' to 'packages.config'
Successfully installed 'Microsoft.AspNet.WebApi.Client 5.2.3' to WebApplication5
Removing package 'Microsoft.AspNet.WebApi.Client.4.0.20710' from folder 'c:\Users\dell 3555\Documents\Visual Studio 2015\Projects\WebApplication5\packages'
Removed package 'Microsoft.AspNet.WebApi.Client.4.0.20710' from folder 'c:\Users\dell 3555\Documents\Visual Studio 2015\Projects\WebApplication5\packages'
PM> Install-Package Microsoft.AspNet.WebApi.Client -Version 4.0.30506
Attempting to gather dependency information for package 'Microsoft.AspNet.WebApi.Client.4.0.30506' with respect to project 'WebApplication5', targeting '.NETFramework,Version=v4.5.1'
Attempting to resolve dependencies for package 'Microsoft.AspNet.WebApi.Client.4.0.30506' with DependencyBehavior 'Lowest'
Resolving actions to install package 'Microsoft.AspNet.WebApi.Client.4.0.30506'
Resolved actions to install package 'Microsoft.AspNet.WebApi.Client.4.0.30506'
Removed package 'Microsoft.AspNet.WebApi.Client.5.2.3' from 'packages.config'
Successfully uninstalled 'Microsoft.AspNet.WebApi.Client.5.2.3' from WebApplication5
  GET https://api.nuget.org/packages/microsoft.aspnet.webapi.client.4.0.30506.nupkg
  OK https://api.nuget.org/packages/microsoft.aspnet.webapi.client.4.0.30506.nupkg 41ms
Installing Microsoft.AspNet.WebApi.Client 4.0.30506.
Adding package 'Microsoft.AspNet.WebApi.Client.4.0.30506' to folder 'c:\Users\dell 3555\Documents\Visual Studio 2015\Projects\WebApplication5\packages'
Added package 'Microsoft.AspNet.WebApi.Client.4.0.30506' to folder 'c:\Users\dell 3555\Documents\Visual Studio 2015\Projects\WebApplication5\packages'
Added package 'Microsoft.AspNet.WebApi.Client.4.0.30506' to 'packages.config'
Successfully installed 'Microsoft.AspNet.WebApi.Client 4.0.30506' to WebApplication5
Removing package 'Microsoft.AspNet.WebApi.Client.5.2.3' from folder 'c:\Users\dell 3555\Documents\Visual Studio 2015\Projects\WebApplication5\packages'
Removed package 'Microsoft.AspNet.WebApi.Client.5.2.3' from folder 'c:\Users\dell 3555\Documents\Visual Studio 2015\Projects\WebApplication5\packages'
PM> 
Posted
Updated 4-May-17 0:36am
v2

1 solution

Search engines are a wonderful invention - look what the first returned result was NuGet Gallery | System.Net.Http.Formatting 5.2.3[^]

Just in case that doesn't work here are the other 300k ... Search results[^]
 
Share this answer
 
Comments
saimanisha 6-May-17 2:22am    
i installed Install-Package Microsoft.AspNet.WebApi.Client this package but also its not working
CHill60 6-May-17 9:19am    
What has installing Microsoft.AspNet.WebApi.Client package got to do with fixing your problem? I told you how to install System.Net.Http.Formatting package.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900