473,545 Members | 2,605 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.P age,IHttpHandle r,
IRequiresSessio nState
{

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*******@gsdin dia.com

bye
sathya narayanan

Nov 19 '05 #1
1 2313
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******** *************@g 47g2000cwa.goog legroups.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.P age,IHttpHandle r,
IRequiresSessio nState
{

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*******@gsdin dia.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
2791
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 default.aspx (both file isin sharepoint).I have give a copy of my code below..
1
1630
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 facing a problem in opening some forms from command button a message appear the openform action was canceled and when i open them from the database...
2
1453
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 you're done.... but that's in theory. It should repaint itself, it should take the size of the client form (the form you're dropping it on), and it...
3
11414
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 found that innerHTML is read only for tables in IE which is a problem, please see my code below. I need urgent help if anyone has an idea or a...
2
2416
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 web.config file but has not been fruitful. I would be thankful if the following questions were answered: a)has the write permissions on files and...
4
1299
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 loop\n"); for (x=0;x<=maxx;x++){ for(y=0;y<=maxy;y++){ printf(".");
0
1464
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 can help me with this problem, please!!!!!!!!! This is the problem: 3. Several input text files have been provided as input to your program. a)...
1
1411
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 Then MessageBox.Show("please Enter Your Name and Password") txtUserName.Text = "" txtPass.Text = ""
0
1362
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 it necessery ? or may I have to install another program? 2- I have entered server's Ip insted of hostname.Is it correct? 3- I have creat a...
0
7428
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7685
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7941
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7452
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5354
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5071
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3485
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1916
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 we have to send another system
0
738
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.