Hi,
I have a HttpModule in C# 2.0 which handles exceptions thrown. Whenever the exception is thrown, an error page (aspx) with some querystring will be called. It is done through Server.Transfer().
But when the control tries to execute Server.Transfer(), an exception "Error executing child request for [pagename].aspx." is thrown. Where as Request.Redirect() works fine.
I tried setting EnableViewStateMac="false" in Page directive of the page to which request is transfered. Still problem persists.
Here is the code I tried:
string errorPage = "errorpage.aspx?id=" + someErrorId
HttpContext.Current.Server.Transfer(errorPage,true);
Any idea how this can be resolved?