Microsoft KB Archive/243547

From BetaArchive Wiki
Knowledge Base


PRB: ASP Does Not Provide Progress Notifications to Client Browsers

Article ID: 243547

Article Last Modified on 10/23/2003



APPLIES TO

  • Microsoft Active Server Pages 4.0, when used with:
    • Microsoft Internet Information Server 4.0



This article was previously published under Q243547

SYMPTOMS

Active Server Pages (ASP) does not provide a mechanism for notifying browser clients of progress while a long running task is executed on the server.

CAUSE

ASP is constrained by HTTP, which is inherently stateless and does not provide a mechanism for callback notifications.

RESOLUTION

Because ASP is executed procedurally and synchronously, avoid calling long-running methods or components that perform extensive work, directly from your ASP pages. Calling long-running methods or components negatively impacts performance and scalability of your Web server.

A common scalable solution is to hand off the request to Message Queue Server (MSMQ) and provide e-mail notifications to the client. In this scenario, the ASP page immediately returns a response to the client indicating success or failure and that the user will be notified by e-mail when processing is complete.

Keywords: kbeventservice kbprb KB243547