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

Posted on 2009-12-29
Last Modified: 2013-11-07
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
Question by:Michael_Balloni
    LVL 29

    Accepted Solution


    Author Comment

    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?


    Author Closing Comment

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    User art_snob ( encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now