1
Vote

Azure.Storage NuGet Package uses a deprecated (removed) HttpResponseMessage signature

description

Running on Win8-RP, with Visual Studio 2012 RC and Visual Studio 2010 SP1 installed...applying the package and compiling results in a compile time error:
 
The non-generic type 'System.Net.Http.HttpResponseMessage' cannot be used with type arguments
 
Refer to the forum discussion at http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/e90d582a-7023-44a1-b311-4fe1370b0314
 
The generic version of HttpResponseMessage has been removed. The fix for now is to rename:
public HttpResponseMessage<SasCloudBlobContainerListResponse> GetContainers()
and
public HttpResponseMessage<SasCloudBlobContainerListResponse> GetContainers(string prefix)
 
to
public HttpResponseMessage GetContainers()
and
public HttpResponseMessage GetContainers(string prefix)
 
and in the latter method, change the return value from:
return new HttpResponseMessage<SasCloudBlobContainerListResponse>(result, HttpStatusCode.OK);
to
return Request.CreateResponse(HttpStatusCode.OK, result);

comments