In a Relational Database system , we may get this type of runtime error when calling WebAPI for a composite Object .
The exception looks like this :::
The ‘ObjectContent`1’ type failed to serialize the response body for content type ‘application/xml; charset=utf-8
We can solve this problem by adding the below lines in WebApiConfig.cs file under App_Start folder inside WebAPI project .
Will write few full step by step articles on EntityFramework and WebAPI on this blog , so Please Keep an eye on this Blog .