Ajax 请求出现 500 内部服务器错误
大家好,
有谁知道下面图片中出现的错误
>在页面等待一段时间然后请求ajax调用后出现错误。此后不会重复该错误,但当用户再次等待时,该错误也会再次弹出。那么问题是在页面上等待了一段时间,却找不到原因?
感谢您收到的回复
hi guys,
Does anyone have any knowledge about the error seen at the image down below
The error occurs after waiting on the page for a while and then requesting an ajax call. The error is not repeated afterwards, but when the user waits again the error pops up again too. So the problem is about waiting on the page for a while, but could not find out why?
Thanks for the incoming responses
edit:link to image http://i53.tinypic.com/2ni8bcg.png
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗯,基本上,您的网络服务中发生了异常。听起来可能有些超时了。
您应该做的第一件事是改进日志记录(例如使用 ELMAH),以便您可以准确地看到抛出异常的地方......然后着手修复它。
如果是数据库连接超时,可能是您忘记在某个地方关闭连接......
Well, basically an exception is occurring within your web service. It sounds like it's probably something timing out.
The first thing you should do is improve your logging (e.g. with ELMAH) so you can see exactly where the exception is being thrown... and then go about fixing it.
If it's a database connection timing out, it could be that you're forgetting to close the connection somewhere...