473,385 Members | 1,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 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

NOTE
-------

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 2023

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

Similar topics

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: Mauricio | last post by:
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: ...
6
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...
3
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...
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: 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...
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"...
5
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...
1
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.