(ÇÖZÜM) The 'ObjectContent`1' type failed to serialize the response body for content type 'application/xml; charset=utf-8'

5.10.2017 11:04:26Posted by UMITBENIZ

At the first;
using System.Data.Entity;

Code:
GlobalConfiguration.Configuration.Formatters.JsonFormatter.SerializerSettings     .ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore; GlobalConfiguration.Configuration.Formatters     .Remove(GlobalConfiguration.Configuration.Formatters.XmlFormatter);  


Yorum Ekle

Adı :  
E-mail :      
Yorum :




Design mode
HTML text