1) This error is exactly same as the self referencing error in the ASP.NET when using swagger UI.
Solution:
2)
Solution:
If you are using .NET Core. Using this in startup.cs file
services
.AddMvc()
.AddJsonOptions(x => x.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore);
.AddMvc()
.AddJsonOptions(x => x.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore);
Comments
Post a Comment