Can an HTTP module do a Server.Transfer to an HTTP handler?

I've got a web.config which defines an HTTP handler, Test.ashx, which refers to the simplest possible HTTP handler.

I've got an HTTP authentication module that wants to transfer to this handler.  All I get is System.Web.HttpException: Error executing child request for /test/Test.ashx.

I am able to Server.Transfer to a .aspx page, just not to a handler.

Has anybody tried this before?  Is it possible to get this to work?  This is all with .NET 2.0.

Thanks in advance, -Mike
Michael_BalloniAsked:
Who is Participating?
 
Michael_BalloniAuthor Commented:
That's a very neat link!

How do you recommend that I proceed?

"Analyze web.config or System.Web.Configuration.HttpHandlersSection, find matching handler for required URI, instantiate handler and directly call ProcessRequest method."

???

That sounds promising.  Any advice on how to do that?  What would the code look like?

Thanks,
-Mike
0
 
Michael_BalloniAuthor Commented:
The expert answered my question, but left it to me to figure out how to implement the solution.  It'd have been nice if another expert would have come along to finish the job, assuming that the first one wasn't going to.  I got it done, but it took longer than I would've liked it to.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.