ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Self referencing loop detected for property
Title:
B
I
{code}
?
I have a grid with only 3 columns ID, NAME, DESCRIPTION this error occurs: AweDefaultProgramDetailGrid Newtonsoft.Json.JsonSerializationException: Self referencing loop detected for property 'Target' with type 'System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[System.String,Nop.Web.Web.Areas.App.Controllers.DefaultProgramDetailGridController+d__5]'. Path 'dt.it[0].DefaultProgramName.MoveNextAction'. at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CheckForCircularReference(JsonWriter writer, Object value, JsonProperty property, JsonContract contract, JsonContainerContract containerContract, JsonProperty containerProperty) at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CalculatePropertyValues(JsonWriter writer, Object value, JsonContainerContract contract, JsonProperty member, JsonProperty property, JsonContract& memberContract, Object& memberValue)
Save Changes
Cancel
Meccanica Rossi
asked at 24 Nov 2021
looks similar to this: https://www.aspnetawesome.com/learn/mvc/CommonProblems#A-circular-reference-was-detected-while-serializing-an-object-of-type-SystemDataEntityDynamicProxies make use of the GridModelBuilder `Map` method, you're probably trying to send to the client your whole model, when you actually need to send only 3 properties
at 24 Nov 2021
Omu
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK