ContentServiceClient - DownloadContent web method response error.

Options

Hello,

I'm currently able to successfully Authenticate and get the content context but when calling the ContentServiceClient's DownloadContent web method the following error message is being thrown when executing the following line of code:

DownloadContentResponse downloadResponse = new DownloadContentResponse();

 downloadResponse = await contentServiceClient.DownloadContentAsync(downloadRequest);

Error Message:

System.ServiceModel.ProtocolException: The content type multipart/related; type=\"application/xop+xml\"; start=\"<http://tempuri.org/0>\"; boundary=\"uuid:e5a287b1-6611-4a22-a826-751159aedfa8+id=2\"; start-info=\"text/xml\" of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly.

Can anyone please provide guidance on why the error is being thrown?

Thanks.

Comments