HttpHandlers

bvoilcgtji

New Member
Howdy all, I'm trying to create a simple filter using an HTTPHandler. Basically, all I want it do is create an entry in the event log and the perform a server.transfer on to the page that the client is requesting. I've added an entry in the web.config file that looks like this:<BR><BR><httpHandlers><BR> <add verb="*" path="*.aspx"<BR> type="Simple.BMGHttpHandler, ClassLibrary1"<BR> /><BR></httpHandlers><BR><BR>However, when I try to perform the server. transfer I get the following error:<BR><BR>Source Error: <BR><BR>An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. <BR><BR>Stack Trace: <BR><BR>[HttpException (0x80004005): Error executing child request for target.aspx.]<BR> System.Web.HttpServerUtility.ExecuteInternal(Strin g path, TextWriter writer, Boolean preserveForm) +1681<BR> System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm) +24<BR> System.Web.HttpServerUtility.Transfer(String path) +79<BR> Simple.BMGHttpHandler.ProcessRequest(HttpContext context)<BR> System.Web.CallHandlerExecutionStep.Execute() +179<BR> System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +87<BR><BR>Any ideas how I might get around this issue? It seems like there has to be a way (response.redirect just causes in infinite loop!)<BR><BR>Thank in advance,<BR><BR>Tripp<BR>
 
Back
Top