HttpContentExtensions.ReadAsAsync Error

Viewed 6844

When making a method call to a generic method within the same class, I am getting the following exception:

System.MissingMethodException: Method not found: 'System.Threading.Tasks.Task`1 System.Net.Http.HttpContentExtensions.ReadAsAsync(System.Net.Http.HttpContent)'

The method call is as follows:

CarMdRootMessage<List<v20.CarMdDiagnosticReport>> report = this.CarMdGet<List<v20.CarMdDiagnosticReport>>(string.Format("report/diagnostic?uploadID={0}", string.Join(",", uploadIds)));

It looked like an issue with the "Microsoft.AspNet.WebApi.Client" NuGet package being out-of-sync between projects, but I have them all on 5.2.3 now and still have the issue.

I also thought this may be a .NET 4.5 issue so I've upgraded all projects to .NET 4.5.2, but I'm still getting the error.

Has anyone seen this before?

2 Answers
Related