HttpServerUtility.Execute across application boundaryRSS

0 replies

Last post Oct 18, 2010 01:33 PM by celdredge

  • HttpServerUtility.Execute across application boundary

    Oct 18, 2010 01:33 PM|celdredge|LINK

    Imagine an IIS configuration that consists of two applications, one deployed to and another deployed to

    In IIS 7, HttpServerUtility.TransferRequest can be used by code in the root application to transfer control into the child application.  However, TransferRequest does not return control to the calling method once the asynchronous request completes.  This prevents the calling code from being able to compose a response with its own content and content from the child application.

     As a feature request, it would be nice if HttpServerUtility.Execute was able to invoke handlers in the child application and capture the response stream in a TextWriter.  This is not currently possible.