I seem to be stuck at the moment when deserializing a response message with response.Content.ReadAs<T>(). I get
No 'MediaTypeFormatter' is available to read an object of type 'KeyPair' with the media type 'application/xml'. A few key headers from Fiddler below..
The weird thing is that I'm succeeding with this type of call (a POST with return message) on another type. I've compared the two approaches extensively looking at the headers, Web API code, serialization attributes on the .net type. Everything about the
approach looks the same yet it complains about this one not having a formatter. I didn't need a custom formatter for the other type so why this one? BTW I'm using version 5 as of now.
Any help would be appreciated,