如何处理脚本超时错误在传统的ASP?

编程入门 行业动态 更新时间:2024-10-15 16:19:50
本文介绍了如何处理脚本超时错误在传统的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.

要甚至支持这种你需要修改用户的注册表: 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?

本文发布于:2023-11-25 23:32:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1631788.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何处理   脚本   错误   传统   ASP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!