Linked Questions

0 votes
0 answers
937 views

the old question solved to json side I get normal response from API when I request content type 'text/json and the problem when I request content type 'text/xml; I get this message An error ...
yhyasoft's user avatar
637 votes
27 answers
555k views

I tried to serialize POCO class that was automatically generated from Entity Data Model .edmx and when I used JsonConvert.SerializeObject I got the following error: Error Self referencing loop ...
NevenHuynh's user avatar
  • 6,839
118 votes
27 answers
248k views

I am working with ASP.NET MVC 5 Web Api. I want consult all my users. I wrote api/users and I receive this: "The 'ObjectContent`1' type failed to serialize the response body for content type '...
CampDev's user avatar
  • 1,659
68 votes
5 answers
51k views

Could someone offer up some advice or point out some blogs/articles that could help with making this decision? The proxies seem very foreign to me and I'm hesitant to use them. I like the ability to ...
matt_dev's user avatar
  • 5,246
11 votes
3 answers
10k views

I am breaking my head over this issue. I did find something on the internet about it, but not a clear answer. My problem: I have to classes in Model section of an MVC3 web app: ParentClass and ...
Mounhim's user avatar
  • 1,724
8 votes
4 answers
4k views

I am getting an output of XML from a stored procedure. What I am trying to do is get that XML and pass it out via ASP.NET: public XmlDocument GetPunchListXml(string communityDesc) { try { ...
user979331's user avatar
  • 12.1k
3 votes
2 answers
11k views

I have a problem with Serialization of Data from database to JSON format. I'm using WebAPI 2 and Entity Framework 6. I've created with EF a Model. The database and the tables with content are even ...
yuro's user avatar
  • 2,229
2 votes
2 answers
2k views

My Controller method is called successfully and the view model loads data, but throws an error upon returning. public AccountManagerViewModel Get(string id) { AccountManagerViewModel account = ...
SomethingOn's user avatar
  • 11.1k
1 vote
0 answers
2k views

I am using asp.net MVC with WebApi. Everything is working fine on localhost but on appharbor deployed website i am getting exception The 'ObjectContent 1 type failed to serialize the response body for ...
Irfan Y's user avatar
  • 1,310
0 votes
3 answers
609 views

I'm making a UWP application, using Entity Framework, with WebApi about Students and Courses. I have amany-to-many relationship between my Students and Courses. I tried to route an action that ...
Fred's user avatar
  • 407
0 votes
0 answers
364 views

Following this tutorial and my question, now I can't get the events from my database. The model: public class Event { public virtual int id { get; set; } public virtual string title { get; ...
dasdasd's user avatar
  • 107
1 vote
1 answer
320 views

I have an object that has custom data types in it. When I try to pass that object through my REST API, I get an error that says: The 'ObjectContent'1' type failed to serialize the response body for ...
Jacob's user avatar
  • 299
1 vote
1 answer
270 views

I am trying to return some data to client page using webAPI. Please see below the exception am currently seeing while trying to access the api/controller from a browser StackTrace System.Runtime....
wisemikky's user avatar
0 votes
0 answers
200 views

when I try to get data from my API on IIS this error is shown The 'ObjectContent`1' type failed to serialize the response body for content type 'application/json; charset=utf-8'." this error is ...
ans bedoor's user avatar
0 votes
0 answers
78 views

Currently I am using aspnetboilerplate to enhance a project which include both mvc and web api, after port web api code to abp, I found the controller cannot return entity successfully, the code like ...
James Hao's user avatar
  • 893

15 30 50 per page