Failed to load resource: the server responded with a status of 500 (Internal Server Error)
2018-01-13 19:17
711 查看
【前言】
今天在做番茄时钟(dmtodo)的时候,出现了这个问题。Failed to load resource: the server responded with a status of 500 (Internal Server Error)
不过看不到详细的报错信息。那就逐步调试一下,就会出现详细的错误:
POST http://localhost:29230/Register/Register 500 (Internal Server Error),点开这个,就会出现详细错误
详细的错误信息就出来了:System.InvalidOperationException: 序列化类型为“System.Data.Entity.DynamicProxies.t_user_4C42A0667A684993DA6693ACCBED26AC0D2636CF73CCF638833CF2CB0FF7AF0C”的对象时检测到循环引用。
【原因】
【解决办法】
在进行增删改查数据库的上面加上这句话:db.Configuration.ProxyCreationEnabled= false;
办法不止有一种,推荐一篇博客链接:点击打开链接
【总结】
通过解决这个问题,知道以后如何利用互联网查找问题,解决问题。还是很有收获的。相关文章推荐
- 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)
- PHP 中 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)
- 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)
- Failed to load resource: the server responded with a status of 500 ()
- SharePoint Debug - Failed to load resource: the server responded with a status of 500
- Failed to load resource: the server responded with a status of 405 (Method Not Allowed)
- SprimgMVC:Failed to load resource: the server responded with a status of 406 (Not Acceptable)
- Failed to load resource: the server responded with a status of 406 (Not Acceptable)问题的解决方案
- 关于使用springmvc时Failed to load resource: the server responded with a status of 400 (Bad Request)错误可能原因
- 关于使用springmvc时Failed to load resource: the server responded with a status of 400 (Bad Request)错误可能原因
- springmvc获取json Failed to load resource: the server responded with a status of 406 (Not Acceptable)
- SrpingMVC==>Failed to load resource: the server responded with a status of 404(Not Found)
- Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
- Failed to load resource: the server responded with a status of 404
- (springmvc)页面找不到静态资源文件Failed to load resource: the server responded with a status of 404 (Not Found)
- 好困出来的bugFailed to load resource: the server responded with a status of 404 (Not Found)
- jquery:Failed to load resource: the server responded with a status of 404 (Not Found)