请求在IIS上超时

时间:2013-10-21 18:28:26

标签: c# asp.net visual-studio iis httpexception

我正在创建一个工资单应用程序,我必须处理超过500名员工。当我在本地计算机上运行应用程序时,它将运行应用程序并生成正确的信息。完成数据处理需要3-4分钟。当我将我的应用程序部署到IIS并尝试运行它时,我会在下面收到以下错误:

应用程序中的服务器错误。

请求超时。

描述:执行当前Web请求期间发生了未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。

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.]

我尝试更改该特定网站的connection time out (seconds) to 600的高级设置中的IIS,但这不起作用。有什么建议吗?

1 个答案:

答案 0 :(得分:2)

尝试更改web.config参数<httpRuntime executionTimeout="90"/> 90 - 是默认值,以秒为单位 你需要设置更大的价值