Ajax请求500内部服务器错误

时间:2022-10-07 15:25:07

hi guys,

嗨,大家好,

Does anyone have any knowledge about the error seen at the image down below

有没有人对下面图片中看到的错误有任何了解

Ajax请求500内部服务器错误

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?

在页面上等待一段时间然后请求ajax调用之后发生错误。之后不会重复该错误,但是当用户再次等待时,错误也会再次弹出。所以问题是关于在页面上等待一段时间,但无法找出原因?

Thanks for the incoming responses

感谢您的回复

edit:link to image http://i53.tinypic.com/2ni8bcg.png

编辑:链接到图像http://i53.tinypic.com/2ni8bcg.png

1 个解决方案

#1


1  

Well, basically an exception is occurring within your web service. It sounds like it's probably something timing out.

好吧,基本上是您的Web服务中发生异常。听起来这可能是暂时的。

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.

你应该做的第一件事是改进你的日志记录(例如使用ELMAH),这样你就可以确切地看到抛出异常的位置......然后去修复它。

If it's a database connection timing out, it could be that you're forgetting to close the connection somewhere...

如果它是一个数据库连接超时,可能是你忘记在某处关闭连接...

#1


1  

Well, basically an exception is occurring within your web service. It sounds like it's probably something timing out.

好吧,基本上是您的Web服务中发生异常。听起来这可能是暂时的。

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.

你应该做的第一件事是改进你的日志记录(例如使用ELMAH),这样你就可以确切地看到抛出异常的位置......然后去修复它。

If it's a database connection timing out, it could be that you're forgetting to close the connection somewhere...

如果它是一个数据库连接超时,可能是你忘记在某处关闭连接...