What happened to HttpResponseMessage in .NET 4.5, is there an alternative?

My project was created for .NET 4, and the version of System.Net.Http was a link to version 2. I just upgraded to .NET 4.5 because I wanted to make something from this routing material , and I needed a link to version 4 of the assembly System.Net.Http I made.

However, my web services return an HttpResponseMessage that does not exist in version 4. of the assembly.

How should I proceed?

+4
source share
1 answer

On MSDN, it is still in the System.Net.Http assembly. Make sure that you are updating both the new System.Net and System.Net.Http assemblies.

http://msdn.microsoft.com/en-us/library/system.net.http.httpresponsemessage.aspx

I created a new project and added the System.Net and System.Net.Http assemblies, and HttpResponseMessage showed great.

+6
source

All Articles