415 Unsupported Media Type

I had been struggling with a odd error when performing a POST from a WebApi project.

The server was refusing the request because the request is in a format not supported by that method.

The code causing the error: