I am new to Web API. I just want to return some List on some method call, in which its verb is HttpGet.
Upon giving the request in the browser, I have received the following error:
Web API Error: The 'ObjectContent`1' type failed to serialize the response body for content type 'application/xml; charset=utf-8'
I have searched for the solution, and finally,
DBContextObjName.Configuration.ProxyCreationEnabled = false;
is the one, which solves the error.
But I just want to know, how this solves the error. I mean in which way the solution and the error related.
May I kindly know, the explanation for it. So I can understand this, more clearly.
Thanks in advance.