473,473 Members | 1,730 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

context.Server.Transfer

Hi!

I´m using a custom handler with an ASP.NET application
using the Front Controller pattern.

But I´m 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 3414
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!

I´m using a custom handler with an ASP.NET application
using the Front Controller pattern.

But I´m 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 doesn´t 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: | last post by:
When passing values from one page to another using context.items collection & server.transfer, how secure is this data? This is using the notion that you add an item to the context.items...
0
by: Srini | last post by:
I am implementing Front Controller in ASP.net as outlined in Microsoft documentation titled "Implementing Front Controller in ASP.NET Using HTTPHandler"...
1
by: Daniel Groh | last post by:
I'm studying for C# Cert and i found a question about Context.Handler and i didn't understand. Could someone please explain me when and how do i use ? I'd like to make webapplication here for...
2
by: Rea Peleg | last post by:
Hi eb I am adding in webForm1.aspx some item to the context items collection in order to extract it in the next aspx page: In webForm1.aspx - c# code behind - i do:...
2
by: dave | last post by:
This little problem is driving me nuts!! On my webform page I create 2 variables.. Protected p_dml As String = "I" Public Const mwv_id As Integer = 0 ' originally had mwv_id as Protected
4
by: nicholas | last post by:
I'm using context to transfer variables from 1 page to another. But, with more than 2 pages it fails. Ex: page1.aspx: Context.Items.Add("customername", customername.text)...
1
by: Hugo Flores | last post by:
Hi, I'm trying to pass information between pages. I'm trying to avoid using QueryString and Session variables. I saw somewhere that I could use contxt.Items.Add (combined with Server.Transfer)...
0
by: John Murray | last post by:
Am porting ASP.NET code from 2.0 beta 2 to the RTM for 2.0. In a handler, I am doing a simple Transfer (with the code below) which results in a NullReferenceException (stack trace below as well.)...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.