HttpServerUtility BUG?

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top