471,072 Members | 1,378 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,072 software developers and data experts.

context.Server.Transfer

Hi!

Im using a custom handler with an ASP.NET application
using the Front Controller pattern.

But Im experiementing some problems with the following
line of code:

context.Server.Transfer(url);

context is a HttpContext object and url is a string with
the target url.

When running the application, I obtain the following
error:

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 /logon.aspx
what can be the error????
Nov 17 '05 #1
2 3293
Try

System.Web.HttpContext.Current.Server.Transfer(url );

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
The more I learn, the less I know.

"Mauricio" <mr******@hotmail.com> wrote in message
news:02****************************@phx.gbl...
Hi!

Im using a custom handler with an ASP.NET application
using the Front Controller pattern.

But Im experiementing some problems with the following
line of code:

context.Server.Transfer(url);

context is a HttpContext object and url is a string with
the target url.

When running the application, I obtain the following
error:

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 /logon.aspx
what can be the error????
Nov 17 '05 #2
It doesnt work. I have the same error.

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 default.aspx.

Source Error:
Line 22:
Line 23: // context.Server.Transfer
(url);
Line 24:
System.Web.HttpContext.Current.Server.Transfer
(url);
Line 25: }
Line 26: }

Stack Trace:
[HttpException (0x80004005): Error executing child
request for default.aspx.]
System.Web.HttpServerUtility.ExecuteInternal(Strin g
path, TextWriter writer, Boolean preserveForm)
System.Web.HttpServerUtility.Transfer(String path,
Boolean preserveForm)
System.Web.HttpServerUtility.Transfer(String path)
Volvo.Evaluacion.Web.RedirectingCommand.Execute
(HttpContext context) in
c:\inetpub\wwwroot\volvoeval\redirectingcommand.cs :24
Volvo.Evaluacion.Web.Handler.ProcessRequest
(HttpContext context) in
c:\inetpub\wwwroot\volvoeval\handler.cs:14

System.Web.CallHandlerExecutionStep.System.Web.Htt pApplica
tion+IExecutionStep.Execute()
System.Web.HttpApplication.ExecuteStep(IExecutionS tep
step, Boolean& completedSynchronously)


Version Information: Microsoft .NET Framework
Version:1.1.4322.557; ASP.NET Version:1.1.4322.557
Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Srini | last post: by
1 post views Thread by Daniel Groh | last post: by
2 posts views Thread by Rea Peleg | last post: by
4 posts views Thread by nicholas | last post: by
1 post views Thread by Hugo Flores | last post: by
reply views Thread by John Murray | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.