A
Alexander
I wanna to transfer from one HttpHandler (HttpModule) to another one.
When I doing HttpContext.Current.Server.Transfer("~/OtherHandler.ashx")
from my handler I see:
[HttpException (0x80004005): Error executing child request for
/OtherHandler.ashx.]
System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler,
TextWriter writer, Boolean preserveForm, Boolean setPreviousPage,
VirtualPath path, VirtualPath filePath, String physPath, Exception
error, String queryStringOverride) +3179617
System.Web.HttpServerUtility.Execute(String path, TextWriter writer,
Boolean preserveForm) +747
System.Web.HttpServerUtility.Transfer(String path, Boolean
preserveForm) +56
System.Web.HttpServerUtility.Transfer(String path) +26
When I doing the same thing with ASPX Pages all works fine. Is this
behaviour is "By Design" or I have a bug found?
I have simple workaround for this issue implementing my own mechanizm
for HttpHandlers invoking which examines Web.config and instantiates
mapped handlers, if Uri matches someone. But it's sound like a hack.
..NET 2.0, 1.1
When I doing HttpContext.Current.Server.Transfer("~/OtherHandler.ashx")
from my handler I see:
[HttpException (0x80004005): Error executing child request for
/OtherHandler.ashx.]
System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler,
TextWriter writer, Boolean preserveForm, Boolean setPreviousPage,
VirtualPath path, VirtualPath filePath, String physPath, Exception
error, String queryStringOverride) +3179617
System.Web.HttpServerUtility.Execute(String path, TextWriter writer,
Boolean preserveForm) +747
System.Web.HttpServerUtility.Transfer(String path, Boolean
preserveForm) +56
System.Web.HttpServerUtility.Transfer(String path) +26
When I doing the same thing with ASPX Pages all works fine. Is this
behaviour is "By Design" or I have a bug found?
I have simple workaround for this issue implementing my own mechanizm
for HttpHandlers invoking which examines Web.config and instantiates
mapped handlers, if Uri matches someone. But it's sound like a hack.
..NET 2.0, 1.1