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

前端之家收集整理的这篇文章主要介绍了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>
原文链接:https://www.f2er.com/aspnet/254644.html

猜你在找的asp.Net相关文章