|
 |
aspx thread: Server.Transfer throws exception
Message #1 by "Lindahl, Ron" <Ron.Lindahl@L...> on Tue, 15 Oct 2002 18:27:38 -0400
|
|
The details of my error are below. This transfer method worked flawlessly
at first, but I don't know what changes could have affected it. The form is
taking some information performing a client side validation for required
fields, a coded server validation to check two returned fields for data (an
either/or scenario), and if validation gives the OK, it sends the
information to the database. After this, I'm trying to transfer to a simple
"thank you for the submission" page. As I said, it worked previously,
before I introduced validation controls. I'm unaware of any issues
regarding this. Everything is working except for the transfer method.
Error executing child request for thankyou.htm.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Error executing child request
for thankyou.htm.
Source Error:
Line 118: conn1.Open()
Line 119: a = comm1.ExecuteNonQuery()
Line 120: Server.Transfer("thankyou.htm")
Line 121: End Sub
Line 122:
Source File: c:\inetpub\wwwroot\HolidayHelp\apply.aspx.vb Line: 120
Stack Trace:
[HttpException (0x80004005): Error executing child request for
thankyou.htm.]
System.Web.HttpServerUtility.ExecuteInternal(String path, TextWriter
writer, Boolean preserveForm)
System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm)
System.Web.HttpServerUtility.Transfer(String path)
HolidayHelp.apply.applybutton_Click(Object sender, EventArgs e) in
c:\inetpub\wwwroot\HolidayHelp\apply.aspx.vb:120
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePo
stBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()
Message #2 by "Lindahl, Ron" <Ron.Lindahl@L...> on Tue, 15 Oct 2002 18:57:20 -0400
|
|
Response.Redirect works in this situation, but if anyone can let me know why
Server.Transfer generates that error, it would be very helpful.
Thanks in advance.
-----Original Message-----
From: Lindahl, Ron [mailto:Ron.Lindahl@L...]
Sent: Tuesday, October 15, 2002 6:28 PM
To: ASP+
Subject: [aspx] Server.Transfer throws exception
The details of my error are below. This transfer method worked flawlessly
at first, but I don't know what changes could have affected it. The form is
taking some information performing a client side validation for required
fields, a coded server validation to check two returned fields for data (an
either/or scenario), and if validation gives the OK, it sends the
information to the database. After this, I'm trying to transfer to a simple
"thank you for the submission" page. As I said, it worked previously,
before I introduced validation controls. I'm unaware of any issues
regarding this. Everything is working except for the transfer method.
Error executing child request for thankyou.htm.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Error executing child request
for thankyou.htm.
Source Error:
Line 118: conn1.Open()
Line 119: a = comm1.ExecuteNonQuery()
Line 120: Server.Transfer("thankyou.htm")
Line 121: End Sub
Line 122:
Source File: c:\inetpub\wwwroot\HolidayHelp\apply.aspx.vb Line: 120
Stack Trace:
[HttpException (0x80004005): Error executing child request for
thankyou.htm.]
System.Web.HttpServerUtility.ExecuteInternal(String path, TextWriter
writer, Boolean preserveForm)
System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm)
System.Web.HttpServerUtility.Transfer(String path)
HolidayHelp.apply.applybutton_Click(Object sender, EventArgs e) in
c:\inetpub\wwwroot\HolidayHelp\apply.aspx.vb:120
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePo
stBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()
---
ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442
ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450
These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.
---
Message #3 by "David Adames" <david@p...> on Tue, 15 Oct 2002 19:25:11 -0400
|
|
Ron, the only thing that comes to mind is that Server.Transfer is not for
use across servers whereas Response.Redirect is. Is your htm on a different
server than your calling page?
-----Original Message-----
From: Lindahl, Ron [mailto:Ron.Lindahl@L...]
Sent: Tuesday, October 15, 2002 6:57 PM
To: ASP+
Subject: [aspx] RE: Server.Transfer throws exception
Response.Redirect works in this situation, but if anyone can let me know why
Server.Transfer generates that error, it would be very helpful.
Thanks in advance.
-----Original Message-----
From: Lindahl, Ron [mailto:Ron.Lindahl@L...]
Sent: Tuesday, October 15, 2002 6:28 PM
To: ASP+
Subject: [aspx] Server.Transfer throws exception
The details of my error are below. This transfer method worked flawlessly
at first, but I don't know what changes could have affected it. The form is
taking some information performing a client side validation for required
fields, a coded server validation to check two returned fields for data (an
either/or scenario), and if validation gives the OK, it sends the
information to the database. After this, I'm trying to transfer to a simple
"thank you for the submission" page. As I said, it worked previously,
before I introduced validation controls. I'm unaware of any issues
regarding this. Everything is working except for the transfer method.
Error executing child request for thankyou.htm.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Error executing child request
for thankyou.htm.
Source Error:
Line 118: conn1.Open()
Line 119: a = comm1.ExecuteNonQuery()
Line 120: Server.Transfer("thankyou.htm")
Line 121: End Sub
Line 122:
Source File: c:\inetpub\wwwroot\HolidayHelp\apply.aspx.vb Line: 120
Stack Trace:
[HttpException (0x80004005): Error executing child request for
thankyou.htm.]
System.Web.HttpServerUtility.ExecuteInternal(String path, TextWriter
writer, Boolean preserveForm)
System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm)
System.Web.HttpServerUtility.Transfer(String path)
HolidayHelp.apply.applybutton_Click(Object sender, EventArgs e) in
c:\inetpub\wwwroot\HolidayHelp\apply.aspx.vb:120
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePo
stBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()
---
ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442
ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450
These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.
---
---
ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442
ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450
These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.
---
Message #4 by "Lindahl, Ron" <Ron.Lindahl@L...> on Tue, 15 Oct 2002 21:00:36 -0400
|
|
Same server. One server configuration.
My final workaround was to create an aspx page for the confirmation page, as
I thought I might do that in the future anyway, adding functionality and
user validation. The Server.Transfer worked fine once again.
I'm wondering if it had something to do with the "flat" HTML page, which
still doesn't explain why it worked previously.
Still curious.
-----Original Message-----
From: David Adames [mailto:david@p...]
Sent: Tuesday, October 15, 2002 7:25 PM
To: ASP+
Subject: [aspx] RE: Server.Transfer throws exception
Ron, the only thing that comes to mind is that Server.Transfer is not for
use across servers whereas Response.Redirect is. Is your htm on a different
server than your calling page?
-----Original Message-----
From: Lindahl, Ron [mailto:Ron.Lindahl@L...]
Sent: Tuesday, October 15, 2002 6:57 PM
To: ASP+
Subject: [aspx] RE: Server.Transfer throws exception
Response.Redirect works in this situation, but if anyone can let me know why
Server.Transfer generates that error, it would be very helpful.
Thanks in advance.
-----Original Message-----
From: Lindahl, Ron [mailto:Ron.Lindahl@L...]
Sent: Tuesday, October 15, 2002 6:28 PM
To: ASP+
Subject: [aspx] Server.Transfer throws exception
The details of my error are below. This transfer method worked flawlessly
at first, but I don't know what changes could have affected it. The form is
taking some information performing a client side validation for required
fields, a coded server validation to check two returned fields for data (an
either/or scenario), and if validation gives the OK, it sends the
information to the database. After this, I'm trying to transfer to a simple
"thank you for the submission" page. As I said, it worked previously,
before I introduced validation controls. I'm unaware of any issues
regarding this. Everything is working except for the transfer method.
Error executing child request for thankyou.htm.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Error executing child request
for thankyou.htm.
Source Error:
Line 118: conn1.Open()
Line 119: a = comm1.ExecuteNonQuery()
Line 120: Server.Transfer("thankyou.htm")
Line 121: End Sub
Line 122:
Source File: c:\inetpub\wwwroot\HolidayHelp\apply.aspx.vb Line: 120
Stack Trace:
[HttpException (0x80004005): Error executing child request for
thankyou.htm.]
System.Web.HttpServerUtility.ExecuteInternal(String path, TextWriter
writer, Boolean preserveForm)
System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm)
System.Web.HttpServerUtility.Transfer(String path)
HolidayHelp.apply.applybutton_Click(Object sender, EventArgs e) in
c:\inetpub\wwwroot\HolidayHelp\apply.aspx.vb:120
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePo
stBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()
---
ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442
ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450
These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.
---
---
ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442
ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450
These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.
---
---
ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442
ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450
These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.
---
Message #5 by "Juan T. Llibre" <j.llibre@c...> on Tue, 15 Oct 2002 22:24:15 -0400
|
|
Ron,
What happens if you use "thankyou.aspx" ?
Juan T. Llibre
Microsoft MVP [IIS/ASP]
Foros de ASP.NET en Espaņol : http://asp.net.do/Foros/
=========================================
----- Original Message -----
From: "Lindahl, Ron" <Ron.Lindahl@L...>
To: "ASP+" <aspx@p...>
Sent: Tuesday, October 15, 2002 9:00 PM
Subject: [aspx] RE: Server.Transfer throws exception
> Same server. One server configuration.
>
> My final workaround was to create an aspx page for the confirmation page,
as
> I thought I might do that in the future anyway, adding functionality and
> user validation. The Server.Transfer worked fine once again.
>
> I'm wondering if it had something to do with the "flat" HTML page, which
> still doesn't explain why it worked previously.
>
> Still curious.
>
> -----Original Message-----
> From: David Adames [mailto:david@p...]
> Sent: Tuesday, October 15, 2002 7:25 PM
> To: ASP+
> Subject: [aspx] RE: Server.Transfer throws exception
>
>
> Ron, the only thing that comes to mind is that Server.Transfer is not for
> use across servers whereas Response.Redirect is. Is your htm on a
different
> server than your calling page?
>
> -----Original Message-----
> From: Lindahl, Ron [mailto:Ron.Lindahl@L...]
> Sent: Tuesday, October 15, 2002 6:57 PM
> To: ASP+
> Subject: [aspx] RE: Server.Transfer throws exception
>
>
>
> Response.Redirect works in this situation, but if anyone can let me know
why
> Server.Transfer generates that error, it would be very helpful.
>
> Thanks in advance.
>
> -----Original Message-----
> From: Lindahl, Ron [mailto:Ron.Lindahl@L...]
> Sent: Tuesday, October 15, 2002 6:28 PM
> To: ASP+
> Subject: [aspx] Server.Transfer throws exception
>
>
> The details of my error are below. This transfer method worked flawlessly
> at first, but I don't know what changes could have affected it. The form
is
> taking some information performing a client side validation for required
> fields, a coded server validation to check two returned fields for data
(an
> either/or scenario), and if validation gives the OK, it sends the
> information to the database. After this, I'm trying to transfer to a
simple
> "thank you for the submission" page. As I said, it worked previously,
> before I introduced validation controls. I'm unaware of any issues
> regarding this. Everything is working except for the transfer method.
>
>
>
> Error executing child request for thankyou.htm.
> Description: An unhandled exception occurred during the execution of the
> current web request. Please review the stack trace for more information
> about the error and where it originated in the code.
>
> Exception Details: System.Web.HttpException: Error executing child request
> for thankyou.htm.
>
> Source Error:
>
> Line 118: conn1.Open()
> Line 119: a = comm1.ExecuteNonQuery()
> Line 120: Server.Transfer("thankyou.htm")
> Line 121: End Sub
> Line 122:
>
>
> Source File: c:\inetpub\wwwroot\HolidayHelp\apply.aspx.vb Line: 120
>
> Stack Trace:
>
> [HttpException (0x80004005): Error executing child request for
> thankyou.htm.]
> System.Web.HttpServerUtility.ExecuteInternal(String path, TextWriter
> writer, Boolean preserveForm)
> System.Web.HttpServerUtility.Transfer(String path, Boolean
preserveForm)
> System.Web.HttpServerUtility.Transfer(String path)
> HolidayHelp.apply.applybutton_Click(Object sender, EventArgs e) in
> c:\inetpub\wwwroot\HolidayHelp\apply.aspx.vb:120
> System.Web.UI.WebControls.Button.OnClick(EventArgs e)
>
>
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePo
> stBackEvent(String eventArgument)
> System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
> sourceControl, String eventArgument)
> System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
> System.Web.UI.Page.ProcessRequestMain()
>
> ---
Message #6 by "Lindahl, Ron" <Ron.Lindahl@L...> on Wed, 16 Oct 2002 09:47:54 -0400
|
|
That was my latest program change, and Server.Transfer works fine (so
far).
-----Original Message-----
From: Juan T. Llibre [mailto:j.llibre@c...]
Sent: Tuesday, October 15, 2002 10:24 PM
To: ASP+
Subject: [aspx] RE: Server.Transfer throws exception
Ron,
What happens if you use "thankyou.aspx" ?
Juan T. Llibre
Microsoft MVP [IIS/ASP]
Foros de ASP.NET en Espa=F1ol : http://asp.net.do/Foros/
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
----- Original Message -----
From: "Lindahl, Ron" <Ron.Lindahl@L...>
To: "ASP+" <aspx@p...>
Sent: Tuesday, October 15, 2002 9:00 PM
Subject: [aspx] RE: Server.Transfer throws exception
> Same server. One server configuration.
>
> My final workaround was to create an aspx page for the confirmation
page,
as
> I thought I might do that in the future anyway, adding functionality
and
> user validation. The Server.Transfer worked fine once again.
>
> I'm wondering if it had something to do with the "flat" HTML page,
which
> still doesn't explain why it worked previously.
>
> Still curious.
>
> -----Original Message-----
> From: David Adames [mailto:david@p...]
> Sent: Tuesday, October 15, 2002 7:25 PM
> To: ASP+
> Subject: [aspx] RE: Server.Transfer throws exception
>
>
> Ron, the only thing that comes to mind is that Server.Transfer is not
for
> use across servers whereas Response.Redirect is. Is your htm on a
different
> server than your calling page?
>
> -----Original Message-----
> From: Lindahl, Ron [mailto:Ron.Lindahl@L...]
> Sent: Tuesday, October 15, 2002 6:57 PM
> To: ASP+
> Subject: [aspx] RE: Server.Transfer throws exception
>
>
>
> Response.Redirect works in this situation, but if anyone can let me
know
why
> Server.Transfer generates that error, it would be very helpful.
>
> Thanks in advance.
>
> -----Original Message-----
> From: Lindahl, Ron [mailto:Ron.Lindahl@L...]
> Sent: Tuesday, October 15, 2002 6:28 PM
> To: ASP+
> Subject: [aspx] Server.Transfer throws exception
>
>
> The details of my error are below. This transfer method worked
flawlessly
> at first, but I don't know what changes could have affected it. The
form
is
> taking some information performing a client side validation for
required
> fields, a coded server validation to check two returned fields for
data
(an
> either/or scenario), and if validation gives the OK, it sends the
> information to the database. After this, I'm trying to transfer to a
simple
> "thank you for the submission" page. As I said, it worked
previously,
> before I introduced validation controls. I'm unaware of any issues
> regarding this. Everything is working except for the transfer
method.
>
>
>
> Error executing child request for thankyou.htm.
> Description: An unhandled exception occurred during the execution of
the
> current web request. Please review the stack trace for more
information
> about the error and where it originated in the code.
>
> Exception Details: System.Web.HttpException: Error executing child
request
> for thankyou.htm.
>
> Source Error:
>
> Line 118: conn1.Open()
> Line 119: a =3D comm1.ExecuteNonQuery()
> Line 120: Server.Transfer("thankyou.htm")
> Line 121: End Sub
> Line 122:
>
>
> Source File: c:\inetpub\wwwroot\HolidayHelp\apply.aspx.vb Line:
120
>
> Stack Trace:
>
> [HttpException (0x80004005): Error executing child request for
> thankyou.htm.]
> System.Web.HttpServerUtility.ExecuteInternal(String path,
TextWriter
> writer, Boolean preserveForm)
> System.Web.HttpServerUtility.Transfer(String path, Boolean
preserveForm)
> System.Web.HttpServerUtility.Transfer(String path)
> HolidayHelp.apply.applybutton_Click(Object sender, EventArgs e) in
> c:\inetpub\wwwroot\HolidayHelp\apply.aspx.vb:120
> System.Web.UI.WebControls.Button.OnClick(EventArgs e)
>
>
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.Rai
sePo
> stBackEvent(String eventArgument)
> System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
> sourceControl, String eventArgument)
> System.Web.UI.Page.RaisePostBackEvent(NameValueCollection
postData)
> System.Web.UI.Page.ProcessRequestMain()
>
> ---
---
ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=3D1861007442
ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=3D1861007450
These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.
---
|
|
 |