I am trying to figure this out. I was not getting any useful error messages with my code so I used something else to generate something. I have attached that code after the
This is what solved my problem Add the following line to WebApiConfig.cs
config.Formatters.XmlFormatter.SupportedMediaTypes.Add(new System.Net.Http.Headers.MediaTypeHeaderValue("multipart/form-data"));