Server.Transfer does not work?

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Server.Transfer does not work?

    Hi

    I am trying to transfer to a different .ASPX page using Server.Transfer.
    However, I get the following error:

    "Error executing child request for [pagename].aspx."

    Anyone know why?

    Thanks for help.


    Tom Guest

  2. Similar Questions and Discussions

    1. Transfer to an new server and web address
      Hello, I am transfer an existing site to a different server. The site was created in contribute. So, does anyone know how to transfer an exisiting...
    2. Error Server.Transfer / Server.Execute ()
      Hi! Any one has Idea, How to use Server.Transfer and Server.Execute, When I tried to use these methods I got an eror: Server object error 'ASP...
    3. Server.Transfer vs. Server.Execute
      i'm using a model, view, control architecture for a group of .asp pages. i can't decide whether to use Server.Transfer or Server.Execute to pass...
    4. Server.Execute and Server.Transfer not detecting session state
      I am setting a session variable, then doing a server.transfer in global.aspx and the page I am going to is saying that session state is not enable...
    5. Server.Transfer
      Using Server.Trasfer the control is shiftewd to the form specified in the parameters of the Server.Transfer. however the URL still contains the...
  3. #2

    Default Re: Server.Transfer does not work?

    Can you post the code where you are calling the Server.Transfer?
    "Tom" <agd_goa@hotmail.com> wrote in message
    news:OkGfSFzODHA.2316@TK2MSFTNGP11.phx.gbl...
    > Hi
    >
    > I am trying to transfer to a different .ASPX page using Server.Transfer.
    > However, I get the following error:
    >
    > "Error executing child request for [pagename].aspx."
    >
    > Anyone know why?
    >
    > Thanks for help.
    >
    >

    Bill Priess Guest

  4. #3

    Default Re: Server.Transfer does not work?

    This is my statement:

    Server.Transfer("QuestionChoice.aspx");

    I also tried:
    Server.Transfer("QuestionChoice.aspx", true);

    I get the same error for both statements.




    "Bill Priess" <no.spam@nospam.com> wrote in message
    news:eX1BEHzODHA.704@tk2msftngp13.phx.gbl...
    > Can you post the code where you are calling the Server.Transfer?
    > "Tom" <agd_goa@hotmail.com> wrote in message
    > news:OkGfSFzODHA.2316@TK2MSFTNGP11.phx.gbl...
    > > Hi
    > >
    > > I am trying to transfer to a different .ASPX page using Server.Transfer.
    > > However, I get the following error:
    > >
    > > "Error executing child request for [pagename].aspx."
    > >
    > > Anyone know why?
    > >
    > > Thanks for help.
    > >
    > >
    >
    >

    Tom Guest

  5. #4

    Default Server.Transfer does not work?

    I had a similar problem where I was Server.Transfer to
    another aspx page which had a crystal report viewer on it.
    If I executed the transfer it worked fine, if any other
    user executed the transfer they received the error as you
    did. The problem was that we were using windows integrated
    security on the site and some of the user accounts didn't
    have ACL permissions for the some of the crystal Dll's
    etc.

    I dont know if this is a similar situation to that what
    you have.

    Pete.
    >-----Original Message-----
    >Hi
    >
    >I am trying to transfer to a different .ASPX page using
    Server.Transfer.
    >However, I get the following error:
    >
    >"Error executing child request for [pagename].aspx."
    >
    >Anyone know why?
    >
    >Thanks for help.
    >
    >
    >.
    >
    trinitypete Guest

  6. #5

    Default Re: Server.Transfer does not work?

    Thanks for the reply. My application is also using DLL libraries developed
    in .NET. I removed integrated security and it worked (I wonder what's the
    connection).

    However, I got another error:
    +++
    Thread was being aborted.
    Error Type: [System.Threading.ThreadAbortException]
    +++

    What I am trying to do is this:

    When the user submits a form, I process the data (update the database) and
    forward to request to another page, but I want the form submitted values to
    be passed on to the new page.

    Do you know of a way to do this?

    Thanks




    "trinitypete" <support@trinity.com> wrote in message
    news:01cd01c33b33$63916630$a101280a@phx.gbl...
    > I had a similar problem where I was Server.Transfer to
    > another aspx page which had a crystal report viewer on it.
    > If I executed the transfer it worked fine, if any other
    > user executed the transfer they received the error as you
    > did. The problem was that we were using windows integrated
    > security on the site and some of the user accounts didn't
    > have ACL permissions for the some of the crystal Dll's
    > etc.
    >
    > I dont know if this is a similar situation to that what
    > you have.
    >
    > Pete.
    > >-----Original Message-----
    > >Hi
    > >
    > >I am trying to transfer to a different .ASPX page using
    > Server.Transfer.
    > >However, I get the following error:
    > >
    > >"Error executing child request for [pagename].aspx."
    > >
    > >Anyone know why?
    > >
    > >Thanks for help.
    > >
    > >
    > >.
    > >

    Tom Guest

  7. #6

    Default Re: Server.Transfer does not work?

    Tom,

    With regard to security:

    If integrated security is being used access to system file
    resources is done via the windows account that the user
    has used to sign in with. Whats probably happening is that
    the user you are logging in with doesn't have sufficient
    windows permissions to access the actual DLL's etc.
    Whatever components you are using ensure your user has
    sufficient windows permissions to access them.

    With regard to passing values from one page to another,
    there are several ways.

    In the calling page store the values in either
    SessionState or Context - SessionState variables live for
    the lifetime of the session and context variables are only
    valid in the context of the request.

    Session["MyVar"]=textbox1.Text

    or

    Context.Items["MyVar"]=textbox1.Text

    in the called page:

    if (Session["MyVar"]!=null)
    string mystring = (string)Session["MyVar"]

    or

    if (Context.Items["MyVar"]!=null)
    string mystring = (string)Session["MyVar"]

    Another way is to use QueryStrings - Appending data to the
    url and picking them back out in the called page. You'll
    have to go and look this one up in the help, I don't use
    them very often.

    HTH. Pete.
    >-----Original Message-----
    >Thanks for the reply. My application is also using DLL
    libraries developed
    >in .NET. I removed integrated security and it worked (I
    wonder what's the
    >connection).
    >
    >However, I got another error:
    >+++
    >Thread was being aborted.
    >Error Type: [System.Threading.ThreadAbortException]
    >+++
    >
    >What I am trying to do is this:
    >
    >When the user submits a form, I process the data (update
    the database) and
    >forward to request to another page, but I want the form
    submitted values to
    >be passed on to the new page.
    >
    >Do you know of a way to do this?
    >
    >Thanks
    >
    >
    >
    >
    >"trinitypete" <support@trinity.com> wrote in message
    >news:01cd01c33b33$63916630$a101280a@phx.gbl...
    >> I had a similar problem where I was Server.Transfer to
    >> another aspx page which had a crystal report viewer on
    it.
    >> If I executed the transfer it worked fine, if any other
    >> user executed the transfer they received the error as
    you
    >> did. The problem was that we were using windows
    integrated
    >> security on the site and some of the user accounts
    didn't
    >> have ACL permissions for the some of the crystal Dll's
    >> etc.
    >>
    >> I dont know if this is a similar situation to that what
    >> you have.
    >>
    >> Pete.
    >> >-----Original Message-----
    >> >Hi
    >> >
    >> >I am trying to transfer to a different .ASPX page using
    >> Server.Transfer.
    >> >However, I get the following error:
    >> >
    >> >"Error executing child request for [pagename].aspx."
    >> >
    >> >Anyone know why?
    >> >
    >> >Thanks for help.
    >> >
    >> >
    >> >.
    >> >
    >
    >
    >.
    >
    trinitypete Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139