System.Web.HttpException:请求超时(System.Web.HttpException: Request timed out)

系统教程 行业动态 更新时间:2024-06-14 16:55:57
System.Web.HttpException:请求超时(System.Web.HttpException: Request timed out)

任何人有任何想法如何去解决这个错误? 这发生在我的现场服务器上,但是当我运行本地计算机或不同的服务器时,没有错误

'/'应用程序中的服务器错误。 请求超时。 说明:执行当前Web请求期间发生未处理的异常。 请查看堆栈跟踪以获取有关该错误的更多信息以及源代码的位置。

异常详细信息:System.Web.HttpException:请求超时。

源错误:

在执行当前Web请求期间生成未处理的异常。 关于异常的来源和位置的信息可以使用下面的异常堆栈跟踪来标识。

堆栈跟踪:

[HttpException(0x80004005):请求超时。]

Anyone have any idea how to go about resolving this error? This is happening on my live server, but when i run the project local pc or different server there is no error

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>

I don't know if there's any underlying problem, but to solve the timeout issue you can specify the request timeout (in seconds) in the web.config, like this:

<httpRuntime executionTimeout="300" />

For context, here's a complete web.config with just this setting:

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

更多推荐

错误,请求,error,HttpException,Web,电脑培训,计算机培训,IT培训"/> <meta name="

本文发布于:2023-04-10 11:26:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/786e325b70fed82da0a04c8d3384cad6.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Web   System   HttpException   timed   Request

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!