改变ASP.NET页面超时 [英] changing ASP.NET page timeout

查看:104
本文介绍了改变ASP.NET页面超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ASP.NET Web应用程序调用,然后本身调用到报告服务报告,报告将保存到文件中的ASP.NET Web服务。整个事情应该等到报告是存在的,然后返回备份链,可下载PDF格式的报告。

I have an ASP.NET web application calling an ASP.NET web service which then itself calls into a report in reporting services for the report to be saved to a file. The whole thing is supposed to wait until the report is there and then return back up the chain with a downloadable pdf report.

的问题是,该报告花费超过90秒更长的时间来产生,并在网络应用程序倍的页面出,同时等待它从呼叫返回到生成报告。该报告最终产生,但我想在页面随时恭候了。

The problem is that the report takes longer than 90 seconds to generate and the page in the web application times out whilst waiting for it to return from the call to generate the report. The report is eventually produced but I'd like the page to keep waiting for it.

我试过在'ASP'限制 - 属性所谓的'脚本超时',这是在1:30到5:00在设置IIS7的东西,但它没有什么区别。我这样做对我的两个Web应用程序和Web服务,但不认为(也许不正确地)它需要报告服务,在那里我可以不反正找到设置这样做,因为报告是始终生成,使本身不示数。

I've tried setting something in IIS7 under 'ASP' 'Limits-Properties' called 'Script Time-out', which was on 1:30, to 5:00 but it makes no difference. I've done this for both my web application and the web service but do not think (maybe incorrectly) it needs doing in reporting services, where I cannot find the setting anyway, since the report is always produced so that itself is not erroring.

我也试过改变
<的httpRuntime的maxRequestLength =32768executionTimeout =60000/>
设置20000毫秒,看它是否超时任何更快,它再次没有效果,这是不奇怪,因为它它要那么超时本来应该在60秒前我改变它,而不是90°

I've also tried changing <httpRuntime maxRequestLength="32768" executionTimeout="60000"/> to set 20000 milliseconds to see if it timed-out any quicker and it again had no effect, which was not surprising since it it was going to then the time-outs should have been in 60 seconds before I changed it, not 90.

那么,如何改变它等待更长的报告吗?

So how do I change it to wait longer for the report?

推荐答案

我可能是错的,但我担心超时设置客户端浏览器上。
你可以从另一个角度来看待这一点? IE浏览器。返回一个加载页面刷新,每5秒,直到该报告已准备就绪?

I might be wrong, but I fear the timeout is set on the client browser. Can you approach this from another perspective? ie. return a "loading" page that refreshes every 5 seconds untill the report is ready?

这篇关于改变ASP.NET页面超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆