473,779 Members | 2,041 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error executing child request for MyPage.aspx.

I am developing an ASP.NET 2.0 application using a master page. I have a
DataList control on the master page that has a datasource this is an
ArrayList of objects that have a CmdURL property. This property contains a
string that hold the name of the page to which control is redirected, e.g.
MyPage.aspx. In this scenario when the user clicks on the DataList item the
handler either executes a Server.Transfer or a Response.Redire ct.

The handler is in the Master page .cs file. This scheme has worked well to
this point, but I am now getting an exception with a message, "Error
executing child request for MyPage.aspx.". What is happening? How can I fix
it?

Note: I have seen the newsgroup entry that says to use Response.Redire ct,
but I get the problem with Redirect as well.

Any help is greatly appreciated.

Thanks,
Eagle
May 25 '06 #1
1 8540
I have looked at this in greater detail in the debugger in my exception
handlers. It turns out that I have an ArrayList of objects that is being
used as a data source on a control on the MyPage.aspx. The underlying class
was not marked as serializable. After marking it the problem "went away".
The necessary information was in an inner exception and would not have been
seen in a superficial examination of the exception. Also, it took some
"chasing" through the code in exception handlers in the original page, the
master page and the target page to determine where the exception was being
thrown. It turns out the exception was thrown on the master page.

While I think I know how to avoid this problem in the future by making
classes used as data sources as serializable, I would appreciate comments on
the details of execution of Response.Redire ct and Server.Transfer from within
the code-behind of master pages.

Thanks,
Eagle

"Ea******@HighF lyingBirds.com" wrote:
I am developing an ASP.NET 2.0 application using a master page. I have a
DataList control on the master page that has a datasource this is an
ArrayList of objects that have a CmdURL property. This property contains a
string that hold the name of the page to which control is redirected, e.g.
MyPage.aspx. In this scenario when the user clicks on the DataList item the
handler either executes a Server.Transfer or a Response.Redire ct.

The handler is in the Master page .cs file. This scheme has worked well to
this point, but I am now getting an exception with a message, "Error
executing child request for MyPage.aspx.". What is happening? How can I fix
it?

Note: I have seen the newsgroup entry that says to use Response.Redire ct,
but I get the problem with Redirect as well.

Any help is greatly appreciated.

Thanks,
Eagle

May 26 '06 #2

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

Similar topics

3
8689
by: Daniel Groh | last post by:
Hi, I've written a C# Server.Transfer from WebForm1.aspx to WebForm2.aspx In both i'm using the same user control but with different params, for example; In the user control: if(Request.ServerVariables==Server.MapPath("WebForm1.aspx")){ lblTitle.Text = "Page 1";
1
35136
by: Tim C. | last post by:
I get the error "error executing child request" when I use the Server.Transfer method to invoke a second aspx page. The following code is executed in a LinkButton click eventhandler on Page1.aspx. Server.Transfer("Page2.aspx",True) This code is virtually identical to the examples in chapter 4 (p. 196) of Microsoft's _Developing Web Applications_ 2nd edition, by Jeff Web. For what I'm
0
1547
by: John A Grandy | last post by:
I solved this problem once before ... but I've forgotten exactly how I solved it ... Directly beneath my web-app root-folder, I have a two sub-folders, Folder1 and Folder2. Folder1 contains Page1.aspx Folder2 contains Page2.aspx
3
9564
by: Timo | last post by:
In javascript code on MyPage.aspx, I set a hidden IFRAME's source url: myframe.location.href = 'someotherpage.aspx'; If the session has timed out, preventing someotherpage.aspx from being loaded into the IFRAME, where can that error condition be trapped? Thanks Timo
0
1453
by: diesel | last post by:
I am doing a very simple Server.Transfer("myPage.aspx", TRUE) Locally on my machine and on the development server there are no issues Once I move it to the production server I get the message "error executing child request" I can't seem to find any resolution to this issue. Many others have had this problem but their resolutions do not work for me.
0
1891
by: rilian | last post by:
For those encountering the 'Error executing child request for...' error, the following may bring some light on the problem. It is possible that the page you are transfering/executing to is re-invoking your handler and producing a recursive relationship. The following describes an example of the recursive relationship. ________________________________ //snippet from web.config <httpHandlers>
1
2199
by: aakadwani | last post by:
Hi, I am getting "Error executing child request for page.html" error when i am using Server.Transfer method. The details are as follows: From Page1, i am calling Server.Transfer(Page2.aspx) and on Page.aspx I am using Server.Execute method to process the page.html and get its response in a string writer and then pass it higher up. Any help is appreciated. Thank you.
4
4454
by: =?Utf-8?B?QWxm?= | last post by:
Hello all, I am having trouble dealing with ~(tilde) in my .Net 1.1 web application, specially when it comes through the URL. For example, when someone requests the following URL: www.mysite.com/~mypage.aspx, my web application will through the following error (with custom errors turned off): Server Error in '/' Application. --------------------------------------------------------------------------------
2
2510
by: rico.fabrini | last post by:
Hello Everyone, I've suddenly started running into the error "error executing child request for Page.aspx" when doing a Server.Transfer("Page.aspx"); That's on a Win2003 Server machine. This same code works fine on another Win2003 Server machine, and a
0
10306
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10074
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9930
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7485
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6724
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5373
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4037
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
2
3632
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2869
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.