服务器超时 [英] Server time out

查看:77
本文介绍了服务器超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行一个网站,但出现以下错误
超时时间已到.在操作完成之前超时时间已过,或者服务器没有响应.

I am running one web site and i am getting following error
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

推荐答案

基于完全缺少可用信息的情况,我唯一的响应可以是:您做错了."
Based on the complete lack of usable information, my only response can be, "You''re doing something wrong."


您的代码中有一些操作花费的时间太长,因此超时到期.

进行调试以获取花费太多时间来执行的过程,或者在此处发布更多细节.
There is some operation in your code which is taking too long a time and thus timeout expiry.

Either debug to get that process that is taking too much of time to execute or post more details out here.


似乎有些过程需要花费太多时间来执行,并且无法在内部完成.默认超时时间.您要上传大文件吗?默认情况下,超时时间为2分钟.
您可以尝试增加web.config文件中的超时时间,然后检查是否有效.
It seems some process is taking too much time to execute and cannot get completed within the default timeout period. Are you uploading a large file or something? By default the timeout is 2 minutes.
You may try increasing the timeout period in your web.config file and check if that works.
<system.web>
  <httpRuntime executionTimeout="240" />
</system.web>



这是240号.在假定操作失败并终止该页面之前的一秒钟内,将给出一个ASP.NET页面.因此,我将执行超时更改为4分钟.



Here 240 is the no. of seconds an ASP.NET page is given before the operation is assumed to have failed and the page terminated. So I have changed the execution time-out to 4 minutes.


这篇关于服务器超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆