微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

任何人都有任何想法如何解决这个错误?这是发生在我的活的服务器,但是当我运行项目本地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>

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐