在 Global.asax中加入这句代码
GlobalConfiguration.Configuration.Formatters.XmlFormatter.SupportedMediaTypes.Clear()
重新运行一切ok !!!
在 Global.asax中加入这句代码
GlobalConfiguration.Configuration.Formatters.XmlFormatter.SupportedMediaTypes.Clear()
重新运行一切ok !!!