简体   繁体   English

500内部服务器错误与Ajax请求

[英]500 Internal Server Error With Ajax Request

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. 在页面上等待片刻然后请求ajax调用后,将发生错误。 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 编辑:链接到图像http://i53.tinypic.com/2ni8bcg.png

Well, basically an exception is occurring within your web service. 好吧,基本上,您的Web服务中正在发生异常。 It sounds like it's probably something timing out. 听起来可能是超时了。

The first thing you should do is improve your logging (eg with ELMAH ) so you can see exactly where the exception is being thrown... and then go about fixing it. 您应该做的第一件事是改善日志记录(例如,使用ELMAH ),以便您可以确切地看到引发异常的位置……然后着手对其进行修复。

If it's a database connection timing out, it could be that you're forgetting to close the connection somewhere... 如果数据库连接超时,则可能是您忘记在某个地方关闭连接...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM