Re: Custom HttpHandler and Server.Transfer



Steven -
Thanks for the reply. The target of the Transfer is another page in
the same app that should be handled by the same custom handler. The
custom extension is set so that the handler gets invoked even if the
"pages" are not pesent, and there is in fact no physical page for the
target (nor is there for the source.)

Cheers,
Bryan

On Mon, 26 Dec 2005 03:48:16 GMT, stcheng@xxxxxxxxxxxxxxxxxxxx (Steven
Cheng[MSFT]) wrote:

>Hi Bryan,
>
>As for ASP.NET's Server.Transfer method, it can only help forward request
>between the pages or urls within the same asp.net webapplcation, we can not
>use Server.Transfer to direct the current request to a resource in
>different application or on other server. So what's the url you used in the
>Server.Transfer ?
>
>Regards,
>
>Steven Cheng
>Microsoft Online Support
>
>Get Secure! www.microsoft.com/security
>(This posting is provided "AS IS", with no warranties, and confers no
>rights.)
>
>
>--------------------
>| From: bryan@xxxxxxxxxxxxxxxxx
>| Subject: Custom HttpHandler and Server.Transfer
>| Date: Fri, 23 Dec 2005 20:27:01 -0600
>| Message-ID: <6acpq1h5lhpljps8k1u1vhuicadj5s5crg@xxxxxxx>
>| X-Newsreader: Forte Agent 3.1/32.783
>| MIME-Version: 1.0
>| Content-Type: text/plain; charset=us-ascii
>| Content-Transfer-Encoding: 7bit
>| Newsgroups: microsoft.public.dotnet.framework.aspnet
>| NNTP-Posting-Host: adsl-68-253-212-158.dsl.emhril.ameritech.net
>68.253.212.158
>| Lines: 1
>| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
>| Xref: TK2MSFTNGXA02.phx.gbl
>microsoft.public.dotnet.framework.aspnet:366884
>| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
>|
>| I've got a custom HttpHandler to process all requests for a given
>| extension. It gets invoked OK, but if I try to do a Server.Transfer I
>| get an HttpException. A Response.Redirect works, but I really need to
>| avoid the extra round-trip to the client.
>|
>| I've tried Passing the page name, the full URL, and the instance of
>| the handler class to the Transfer method, but everything gets me the
>| same error 500.
>|
>| Any help would be appreciated.
>|
>| Thanks,
>| Bryan
>|
.



Relevant Pages

  • Intercept IIS 404 errors? Issue with Viewstate and 404
    ... Jonathan ... If a request is for ASPX, then I can determnine if there is a page not found ... I am implementing the custom 404 handler to give to search ...
    (microsoft.public.inetserver.iis)
  • Re: ASF custom file type
    ... This source filter is loaded when playing the AVI. ... Is it possible to do so also for ASF? ... If you mean you wrote a custom file handler for the AVIFile ...
    (microsoft.public.win32.programmer.directx.video)
  • RE: web.config section replacement
    ... Regarding on this web deployment project "section replacement" with custom ... using custom section handler, the msbuild app need to be able to locate the ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASF custom file type
    ... This source filter is loaded when playing the AVI. ... If you mean you wrote a custom file handler for the AVIFile ...
    (microsoft.public.win32.programmer.directx.video)
  • GetCompiledPageInstance and Custom IhttpHandler
    ... I have written an HttpHandler to process page requests for a custom ... page within the ProcessRequest method of the custom handler. ... custom file extension) and saw that the custom handler was being ...
    (microsoft.public.dotnet.framework.aspnet)

Loading