加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net – System.Web.HttpException:请求超时

发布时间:2020-12-15 19:15:16 所属栏目:asp.Net 来源:网络整理
导读:任何人都有任何想法如何解决这个错误?这是发生在我的活的服务器,但是当我运行项目本地pc或不同的服务器没有错误 Server Error in ‘/’ Application. Request timed out. Description: An unhandled exception occurred during the execution of the curre
任何人都有任何想法如何解决这个错误?这是发生在我的活的服务器,但是当我运行项目本地pc或不同的服务器没有错误

Server Error in ‘/’ Application. Request timed out. Description: An
unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the
error and where it originated in the code.

Exception Details: System.Web.HttpException: Request timed out.

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): Request timed out.]

解决方法

我不知道是否有任何根本的问题,但要解决超时问题,您可以在web.config中指定请求超时(以秒为单位),如下所示:
<httpRuntime executionTimeout="300" />

对于上下文,这里有一个完整的web.config只有这个设置:

<configuration>
    <system.web>
        <httpRuntime executionTimeout="300" />
    </system.web>
</configuration>

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读