We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

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 asp.net applications, one deployed to http://example.com/ and another deployed to http://example.com/child.

    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.