Solution: Error executing child request for [page name]

R

rilian

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>
<add verb="*" path="*.aspx"
type="[namespace.handerclassname],[assmeblyname]"
</httpHandlers>

//snippet from the handler specified above
context.Server.Transfer(somepage.aspx)
________________________________

If your application uses similar config/code logic, then you may
encounter the problem as the transfer may be re-invoking the handler.

I suspect that my statements are correct only because I personally ran
into the problem and by changing the page name to end in something
other than 'aspx' (in my case) solved my problem. However, I can not
say for sure that this 'recursive relationship' is actually the
problem. My originally thinking was that the handler could only be
invoked by 'external' requests and not 'internal' requests initiated by
Server.Transfer/Execute, and therefore, the recursion could not be the
problem. But, maybe there is no distinction between external and
internal requests???

Sorry I can't be more definite!

Could someone from Microsoft confirm/deny this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top