It seems AddXmlDataContractSerializerFormatters middleware fails while serializing generated response for Dictionary<string,object>
here are my dictionary's keys and values
Key1 value1
someKey1 someValue
key2 value2
someKey2 ICollection<TSource>
Serialization of this dictionarty response fails for media-type *Accept: application/xml.