Failed to load resource: the server responded with a status of 500 (Internal Server Error)
生活随笔
收集整理的這篇文章主要介紹了
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
【原因】
因為這個表和另一個表是有一對多關系的,當序列化表1的時候,會找到和另一個表2關聯的字段,就會到另一個表2中序列化,然后另一個表2中也有一個字段和表1相關聯.這樣.序列化就會發生這種錯誤!
【解決方案】
/注:這里值得注意的是,當有外鍵向關聯時,必須要指定序列化元素,如果沒有外鍵相關聯,直接序列化該實體對象
return Json(new { ti.TypeName,ti.Typevalue,ti.UserId,ti.Remark,ti.FullPath,ti.TyId,ti.isdisplay}, JsonRequestBehavior.AllowGet);
?
轉載于:https://www.cnblogs.com/libo-2249/p/9976995.html
總結
以上是生活随笔為你收集整理的Failed to load resource: the server responded with a status of 500 (Internal Server Error)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 绝地求生刺激战场下载安装
- 下一篇: Ros学习topic——小海龟