When trying to send some JSON data through an HTTP POST, I got the following exception message back:
The request entity's media type 'text/plain' is not supported for this resource. No MediaTypeFormatter is available to read an object of type 'TransportDocument' from content with media type 'text/plain'
This error showed up because I forgot to specify the content type in the HTTP headers. Here is one way how to fix this: