Server.Transfer does not work?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tom

    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.


  • Bill Priess

    #2
    Re: Server.Transfer does not work?

    Can you post the code where you are calling the Server.Transfer ?
    "Tom" <agd_goa@hotmai l.com> wrote in message
    news:OkGfSFzODH A.2316@TK2MSFTN GP11.phx.gbl...[color=blue]
    > 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.
    >
    >[/color]


    Comment

    • Tom

      #3
      Re: Server.Transfer does not work?

      This is my statement:

      Server.Transfer ("QuestionChoic e.aspx");

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

      I get the same error for both statements.




      "Bill Priess" <no.spam@nospam .com> wrote in message
      news:eX1BEHzODH A.704@tk2msftng p13.phx.gbl...[color=blue]
      > Can you post the code where you are calling the Server.Transfer ?
      > "Tom" <agd_goa@hotmai l.com> wrote in message
      > news:OkGfSFzODH A.2316@TK2MSFTN GP11.phx.gbl...[color=green]
      > > 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.
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • trinitypete

        #4
        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.[color=blue]
        >-----Original Message-----
        >Hi
        >
        >I am trying to transfer to a different .ASPX page using[/color]
        Server.Transfer .[color=blue]
        >However, I get the following error:
        >
        >"Error executing child request for [pagename].aspx."
        >
        >Anyone know why?
        >
        >Thanks for help.
        >
        >
        >.
        >[/color]

        Comment

        • Tom

          #5
          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.Threadin g.ThreadAbortEx ception]
          +++

          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




          "trinitypet e" <support@trinit y.com> wrote in message
          news:01cd01c33b 33$63916630$a10 1280a@phx.gbl.. .[color=blue]
          > 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.[color=green]
          > >-----Original Message-----
          > >Hi
          > >
          > >I am trying to transfer to a different .ASPX page using[/color]
          > Server.Transfer .[color=green]
          > >However, I get the following error:
          > >
          > >"Error executing child request for [pagename].aspx."
          > >
          > >Anyone know why?
          > >
          > >Thanks for help.
          > >
          > >
          > >.
          > >[/color][/color]


          Comment

          • trinitypete

            #6
            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.[color=blue]
            >-----Original Message-----
            >Thanks for the reply. My application is also using DLL[/color]
            libraries developed[color=blue]
            >in .NET. I removed integrated security and it worked (I[/color]
            wonder what's the[color=blue]
            >connection).
            >
            >However, I got another error:
            >+++
            >Thread was being aborted.
            >Error Type: [System.Threadin g.ThreadAbortEx ception]
            >+++
            >
            >What I am trying to do is this:
            >
            >When the user submits a form, I process the data (update[/color]
            the database) and[color=blue]
            >forward to request to another page, but I want the form[/color]
            submitted values to[color=blue]
            >be passed on to the new page.
            >
            >Do you know of a way to do this?
            >
            >Thanks
            >
            >
            >
            >
            >"trinitypete " <support@trinit y.com> wrote in message
            >news:01cd01c33 b33$63916630$a1 01280a@phx.gbl. ..[color=green]
            >> I had a similar problem where I was Server.Transfer to
            >> another aspx page which had a crystal report viewer on[/color][/color]
            it.[color=blue][color=green]
            >> If I executed the transfer it worked fine, if any other
            >> user executed the transfer they received the error as[/color][/color]
            you[color=blue][color=green]
            >> did. The problem was that we were using windows[/color][/color]
            integrated[color=blue][color=green]
            >> security on the site and some of the user accounts[/color][/color]
            didn't[color=blue][color=green]
            >> 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.[color=darkred]
            >> >-----Original Message-----
            >> >Hi
            >> >
            >> >I am trying to transfer to a different .ASPX page using[/color]
            >> Server.Transfer .[color=darkred]
            >> >However, I get the following error:
            >> >
            >> >"Error executing child request for [pagename].aspx."
            >> >
            >> >Anyone know why?
            >> >
            >> >Thanks for help.
            >> >
            >> >
            >> >.
            >> >[/color][/color]
            >
            >
            >.
            >[/color]

            Comment

            Working...