如何增加请求/响应的时间在Asp.Net? [英] How to increase the time out for request/response In Asp.Net?
问题描述
我正在处理申请。
我正在收集来自用户i Asp .Net表格,然后查询数据库(在另一台服务器上)。从输出中,我创建一个报告并将其发回给用户。
问题是,数据库查询需要花费很多时间(大约2分钟)。到那时,请求超时。
如何设置请求的超时时间那么用户可以收到回复吗?
我在网络配置中尝试了很多方法
< pre lang =HTML> < httpRuntime maxRequestLength = 104857600 < span class =code-attribute> executionTimeout = 36000 0 / >
< sessionState mode = InProc timeout = 90 > < / sessionState >
< requestLimits maxAllowedContentLength = 2000000000000 / >
但是我没有出去把
希望这会对你有所帮助:
http:// stackoverflow。 com / questions / 15075880 / how-increase-timeout-on-asp-net-http-processes [ ^ ]
http://codeverge.com/asp.net.web-forms /如何增加时间 - 请求 - 重新/ 384394 [ ^ ]
Hi,
I am working on an application.
I am collecting the inputs from user i Asp .Net form and then querying the database(on another server).From the output, I create a report and send it back to the user.
The problem is , database query takes a lot of time (approx 2 min).By that time, the request times out.
How to set the time out for the request so that the user can get back the response ?
I tried many ways in web config
<httpRuntime maxRequestLength="104857600" executionTimeout="360000" />
<sessionState mode="InProc" timeout="90"></sessionState>
<requestLimits maxAllowedContentLength="2000000000000" />
But i didnt get out put
hope this will help you:
http://stackoverflow.com/questions/15075880/how-increase-timeout-on-asp-net-http-processes[^]
http://codeverge.com/asp.net.web-forms/how-to-increase-the-time-out-for-request-re/384394[^]
这篇关于如何增加请求/响应的时间在Asp.Net?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!