System.Web.HttpException:请求超时 [英] System.Web.HttpException: Request timed out
问题描述
任何人有任何想法如何去解决这个错误?这是发生我活的服务器上,但是当我运行该项目的本地PC或其他服务器没有任何错误
在'/'应用程序的服务器错误。请求超时。说明:
当前Web的执行过程中发生未处理的异常
请求。请检查堆栈跟踪有关的详细信息
错误以及它起源于code。
异常详细信息:System.Web.HttpException:请求超时
源错误:
的执行过程中生成了未处理的异常
当前Web请求。有关的起源和位置信息
除了可以使用异常堆栈跟踪下面来识别。
堆栈跟踪:
[HttpException(0x80004005的):请求超时]
块引用>
块引用>解决方案我不知道是否有任何潜在的问题,但在Web.config解决您可以指定请求超时的超时问题(以秒为单位),像这样的:
<的httpRuntime executionTimeout =300/>
有关背景下,这里有一个完整的
的web.config
只此设置:<结构>
<&的System.Web GT;
<的httpRuntime executionTimeout =300/>
< /system.web>
< /结构>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.]
解决方案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>
这篇关于System.Web.HttpException:请求超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!