This is because it is trying to load child objects and can create some kind of looping cycle that will never end (a => b, b => c, c => d, d => a)
You can disable it only at that particular moment, as indicated below. So dbcontext will not load child objects of clients if the Include method is called on your object
db.Configuration.ProxyCreationEnabled = false; User ma = db.user.First(x => x.u_id == id); return Json(ma, JsonRequestBehavior.AllowGet);
kuma DK
source share