GetCompiledPageInstance and Custom IhttpHandler

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi,
I have written an HttpHandler to process page requests for a custom
file extension. The handler gets called as expected and after searching
the web for examples I have used a method called
GetCompiledPageInstance from the PageParser class for getting the web
page within the ProcessRequest method of the custom handler.
I then ran a performance test requesting the custom page mutliple times
(the custom file for the test was an aspx page that I renamed with the
custom file extension) and saw that the custom handler was being
called. I then changed the file extension to be aspx and requested the
page the same number of times as before and saw that the custom handler
was not being called and ASP.NET was processing the aspx page as
normal.
When I compared the performance i.e. requests\sec I noticed that there
was no hit in performance when using the custom handler.
I would have thought there would have been some performance hit and so
I can only think that calling GetCompiledPageInstance is not sufficient
and that to replicate what the ASP.NET handler does when processing a
request involves additonal calls e.g. authentication etc.

Can anyone point me in the direction of or supply me with some
information\sample code on what additional calls if any are required in
the custom handlers ProcessRequest method

Thanks in advance for any help
John

.



Relevant Pages

  • Re: Custom HttpHandler and Server.Transfer
    ... the same app that should be handled by the same custom handler. ... target ... it can only help forward request ...
    (microsoft.public.dotnet.framework.aspnet)
  • 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)
  • Add/Modify Intellisense
    ... I am trying to customize my companies visual studio ide. ... would mock a .cs file extension. ... 2)When the project is compiled i would like to look for some custom ... I would like the keywords to be availabel through intellisense. ...
    (microsoft.public.vsnet.ide)