如何处理脚本超时错误在传统的ASP? [英] How to handle script timeout error in classic ASP?

查看:293
本文介绍了如何处理脚本超时错误在传统的ASP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的经典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.

要甚至支持这种你需要修改用户的注册表:
http://support.microsoft.com/kb/813827

To even support this you'd need to edit the user's registry: http://support.microsoft.com/kb/813827

这只是不是一个好的设计。

It's just not a good design.

这篇关于如何处理脚本超时错误在传统的ASP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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