472,958 Members | 1,945 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

problem in context.server.transfer()

I am implementing Front Controller in ASP.net as outlined in Microsoft documentation titled "Implementing Front Controller in ASP.NET Using HTTPHandler" (http://msdn.microsoft.com/library/de...ollerInASP.asp

Everything works well except for context.server.transfer(string url) method (refer to RedirectingCommand.cs class in the above documentation)

Here are the error details

Server Error in '/DCT' Application

Error executing child request for /DCT/WebUI/Labor/test.aspx.
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 /DCT/WebUI/Labor/test.aspx

Source Error:

Line 18: public void Execute(HttpContext context
Line 19:
Line 20: context.Server.Transfer("/DCT/WebUI/Labor/test.aspx")
Line 21:
Line 22:

Source File: c:\inetpub\wwwroot\dct\architecture\redirectingcom mand.cs Line: 20

Stack Trace:

[HttpException (0x80004005): Error executing child request for /DCT/WebUI/Labor/test.aspx.
System.Web.HttpServerUtility.ExecuteInternal(Strin g path, TextWriter writer, Boolean preserveForm) +170
System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm) +2
System.Web.HttpServerUtility.Transfer(String path) +7
DCT.Architecture.RedirectingCommand.Execute(HttpCo ntext context) in c:\inetpub\wwwroot\dct\architecture\redirectingcom mand.cs:2
DCT.Architecture.Handler.ProcessRequest(HttpContex t context) in c:\inetpub\wwwroot\dct\architecture\handler.cs:2
System.Web.CallHandlerExecutionStep.Execute() +17
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +8
Version Information: Microsoft .NET Framework Version:1.0.3705.288; ASP.NET Version:1.0.3705.288


1) I executed the application in .NET Framework Version 1.1, and still get the same exact error

2) I searched in knowledge forums, and realized that this is a very common error

3) The application works fine if I use context.Response.Redirect("/DCT/WebUI/Labor/test.aspx"); instead of context.Server.Transfer("/DCT/WebUI/Labor/test.aspx"); method. But I need to use Transfer method, as I have to pass some objects from page1 to page2

Please let me know the possible solutions, and if there are any patches available to correct this problem

Jul 21 '05 #1
0 1981

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

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...
by: Mauricio | last post by:
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: ...
by: Scott Zabolotzky | last post by:
I'm trying to pass a custom object back and forth between forms. This custom object is pulled into the app using an external reference to an assembly DLL that was given to me by a co-worker. A...
by: srikirti | last post by:
I used the context object the following way to use server.transfer to pass the dat Context.Items.Add("SessionID",strSessionID) Server.Transfer("WebForm2.aspx") here strSessionID is public...
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)...
by: sathya | last post by:
hi, i have problem in httphandler, my problem is that when i am trying to use server.execute(/default.aspx) i am getting error.... Here i am trying to redirect from home.aspx to...
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"...
by: Richard | last post by:
I've developed a small ASPX template framework (based on Chun Li's article on CodeProject: http://www.codeproject.com/aspnet/headerfooter.asp#xx849313xx) which uses a IHttpModule to apply...
by: mmorrison93 | last post by:
Thanks in advance for any help on this problem, but i have an HttpHandler that looks at the requested url and and tranfers context to a particular file. The problem is the transfer will only work...
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.