473,405 Members | 2,445 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,405 software developers and data experts.

problem in httphandler using server.execute(please urgent)

hi,

i have problem in httphandler, my problem is that when i am trying to
use server.execute(/default.aspx) i am getting error....

[Error executing child request for /Default.aspx]
Here i am trying to redirect from home.aspx to default.aspx (both file
isin sharepoint).I have give a copy of my code below..

public class UrlMap : System.Web.UI.Page,IHttpHandler,
IRequiresSessionState
{

public new bool IsReusable { get { return false; } }
public new void ProcessRequest(HttpContext context)
{
string requestedUrl = context.Request.Url.ToString();
if(requestedUrl.IndexOf("/Home.aspx")!=-1)
{
context.Server.Execute("/Default.aspx");
}
}
}
The same code is working fine when i am using
server.Transfer("/Default.aspx")...
Please anyone can help how to rectify this problem...
It is vey urgent...
mail Adresss : na*******@gsdindia.com

bye
sathya narayanan

Nov 19 '05 #1
1 2298
I'm guessing that as an httphandler is in the IIS pipeline, thus server
execute would try to pass processing to another page - whoich would enter
the handler, and could try to pass processing to another page, thus creating
a potential infinite loop and deadlocking the pipeline Server.transfer
effectively terminates the current request and passes processing to another
page, thus eliminting the recursive process. It might be by design.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"sathya" <sa***************@gmail.com> wrote in message
news:11*********************@g47g2000cwa.googlegro ups.com...
hi,

i have problem in httphandler, my problem is that when i am trying to
use server.execute(/default.aspx) i am getting error....

[Error executing child request for /Default.aspx]
Here i am trying to redirect from home.aspx to default.aspx (both file
isin sharepoint).I have give a copy of my code below..

public class UrlMap : System.Web.UI.Page,IHttpHandler,
IRequiresSessionState
{

public new bool IsReusable { get { return false; } }
public new void ProcessRequest(HttpContext context)
{
string requestedUrl = context.Request.Url.ToString();
if(requestedUrl.IndexOf("/Home.aspx")!=-1)
{
context.Server.Execute("/Default.aspx");
}
}
}
The same code is working fine when i am using
server.Transfer("/Default.aspx")...
Please anyone can help how to rectify this problem...
It is vey urgent...
mail Adresss : na*******@gsdindia.com

bye
sathya narayanan

Nov 19 '05 #2

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

Similar topics

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...
1
by: funfair | last post by:
HI,EVERY ONE first problem, i have create a database in access 2003 it worked fine untill i have format my laptop . now im working on office 2003 on windows xp and i have norton 2006 but im...
2
by: Radu | last post by:
Hi. I am creating a user control in vs2005 which is supposed to provide a fancy gradient background - in theory, you just drop it on a form, you set the start/end colors, the gradient type, and...
3
by: ilia | last post by:
Hi All, I am a newbie in terms of Javascript, I found some code on the net to swap rows in a table using innerHTML, this works fine in Firefox but IE is complaining, after some googling around I...
2
by: Preetam Pattanashetty | last post by:
Hi I am learning ASP.NET using C#. I am able to run .aspx files on local system, but when I load them to the server, I get the "Server Error in '/' Application" error. I have tried to configure the...
4
by: Alan | last post by:
Hi, I m working on thesis on mechanical engieering. I m using C to solve a particualr problem. I have this code underneath which is giving me problems: for (t=0;t<=maxt;t++){ printf("testing...
0
by: nt91rx78 | last post by:
Our college changes 18 weeks semester to 16 semester, so our CS professor cannot finish teaching the last important chapter which is related with my problw\em. This is program C problem Anyone...
1
by: icetalks | last post by:
have a look at this code , its for logging the user in after checking his UserName and Password. dim check as boolean = false ... ... If txtUserName.Text.Length = 0 And txtPass.Text.Length =...
0
by: sa6113 | last post by:
I want to connect to a Windows machine in my network , using ssh, I use paramiko but I have problem in authentication, would you please help me? 1- I have installed freeSSHD in server machine? Is...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.