Welcome to MSDN Blogs Sign in | Join | Help

Server.TransferRequest hangs or takes a long time to execute

Server.TransferRequest is a new API in the IIS 7.0 release of ASP.NET.  It is essentially a server-side redirect.  When invoked, a new request context is created, called the child request, and it goes through the entire IIS 7.0/ASP.NET integrated pipeline.  The child request can be mapped to any of the handlers configured in IIS, and it's execution is no different than it would be if it was received via the HTTP stack.  The parent request jumps ahead in the pipeline to the end request notification, and waits for the child request to complete.  When the child request completes, the parent request executes the end request notifications and completes itself.

Recently an issue was brought to my attention by Luis Abreu.  Attempts to use Server.TransferRequest between the AcquireRequestState and ReleaseRequestState notifications will hang when session state is in use.  Luis does a great job of describing the problem, so let me just add that we will fix this as soon as possible.

-Thomas

Published Wednesday, October 10, 2007 4:31 AM by tmarq

Comments

# Techy News Blog » Server.TransferRequest hangs or takes a long time to execute

# Are Page Modules Still Useful In IIS7?

Sunday, October 14, 2007 8:19 PM by Paulo Morgado

With IIS7 a new transfer method is available in the HttpServerUtility class . It's the TransferRequest

# Are Page Modules Still Useful In IIS7?

Sunday, January 27, 2008 8:34 PM by Paulo Morgado

With IIS7 a new transfer method is available in the HttpServerUtility class . It's the TransferRequest

Anonymous comments are disabled
 
Page view tracker