Server.Transfer from custom HTTP handler?

Discussion in 'ASP .Net' started by henke.lundin@gmail.com, Aug 28, 2007.

  1. Guest

    Hello,

    I am having problems with Server.Transfer(string, bool) in the
    ProcessRequest method of a custom HTTP handler. I get the "Error
    executing child request" error message. The page that I am trying to
    transfer to is mapped to the same custom handler.

    Does anyone know why this occurs? Does the Server.Transfer method
    assume that the target page is mapped to the default aspx Page HTTP
    handler?

    I am using ASP.NET 2.0.

    Any suggestions? Any help would be much appreciated!

    Henrik
     
    , Aug 28, 2007
    #1
    1. Advertising

  2. System.Web.UI.Page inherits HttpHandler. But each Page in an ASP.Net app is
    a different derived class from Sytem.Web.UI.Page. Your HttpHandler class
    inherits HttpHandler. It is trying to transfer to itself.

    --
    HTH,

    Kevin Spencer
    Microsoft MVP

    DSI PrintManager, Miradyne Component Libraries:
    http://www.miradyne.net

    <> wrote in message
    news:...
    > Hello,
    >
    > I am having problems with Server.Transfer(string, bool) in the
    > ProcessRequest method of a custom HTTP handler. I get the "Error
    > executing child request" error message. The page that I am trying to
    > transfer to is mapped to the same custom handler.
    >
    > Does anyone know why this occurs? Does the Server.Transfer method
    > assume that the target page is mapped to the default aspx Page HTTP
    > handler?
    >
    > I am using ASP.NET 2.0.
    >
    > Any suggestions? Any help would be much appreciated!
    >
    > Henrik
    >
     
    Kevin Spencer, Aug 28, 2007
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stanislav Ostachevski
    Replies:
    1
    Views:
    3,175
    John Saunders
    Oct 22, 2003
  2. jespey
    Replies:
    0
    Views:
    534
    jespey
    Nov 12, 2003
  3. aaa
    Replies:
    0
    Views:
    465
  4. John Murray

    handler, using context.Server.Transfer

    John Murray, Nov 8, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    641
    John Murray
    Nov 8, 2005
  5. Jim
    Replies:
    1
    Views:
    964
    Aaron Bertrand - MVP
    Jan 28, 2004
Loading...

Share This Page