在我的经典ASP的应用程序,我试图生成分别具有比7K和14K记录的详细网络报告,但它显示了10到15分钟后,脚本超时的错误。
In my Classic ASP application I am trying to generate a web report having more than 7K and 14K records respectively, but it shows "Script TimeOut" error after 10 to 15 minutes.
在IIS设置已经比默认value.And还我已经写在个人页面下面code的:
The IIS setting is already more than default value.And also I have written the following code in individual page:
<% server.scriptimeout=4000 %>请建议我如何处理它。
推荐答案您根本无法创建具有通过15分钟朝不保夕的HTTP请求的应用程序。这只是注定失败不管。你应该让人们要求的报告,在后台生成,并通知用户该报告仍在进行中/或者通过电子邮件和/或队列准备好了。
You simply cannot create an app that has HTTP requests that hang by a thread for 15 minutes. It's just destined for failure no matter what. You should allow people to request a report, generate it in the background and notify the user the report is still in progress/ready by either email and/or queue.
要甚至支持这种你需要修改用户的注册表: support.microsoft/kb/813827
To even support this you'd need to edit the user's registry: support.microsoft/kb/813827
这只是不是一个好的设计。
It's just not a good design.
更多推荐
如何处理脚本超时错误在传统的ASP?
发布评论