RE: How to continue request execution in a HttpHandler



Hi Ori,

you need to call the Method "PageParser.GetCompiledPageInstance" in
System.Web.UI namespace. You need to provide the physical and virtual path
to the *.aspx File you want to be compiled.

Hope that helps
Patrick

"ori" wrote:

> Hi,
>
> I'm facing a problem when trying to continue normal execution flow
> within a HttpHandler ProcessRequest method. In my application we
> currently have a custom HttpHandler registered which validates a user
> against some Authentication method and then allows him to continue his
> request if successfully authenticated or denies him access if not. We
> use a handler to do this authentication and we'd like to continue
> normal execution if successfully authenticated.
>
> As I understand, we should instantiate somehow a PageHandlerFactory
> object and get a IHttpHandler with the GetHandler method (I have
> successfully done this in Sharepoint with SharepointHandlerFactory
> object). The problem is that System.Web.UI.PageHandlerFactory is marked
> as internal (I think) and can't be instantiated from my handler. Then I
> tried to create a new System.Web.UI.Page object (which, according to
> msdn implements IHttpHandler interface) and invoked it's
> ProcessContext() method (at first this method doesn't appear with
> intelisense context help but you can write it and it compiles without
> problem :S) However, this didn't work and the context.response didn't
> get processed.
>
> I'd like to know how we can continue the execution flow to a normal
> aspx from our custom Handler, how to successfully instantiate a
> PageHandler and invoke it's ProcessRequest method from my Handler (as I
> said, I successfully did this in Sharepoint). I know there might be
> better ways to authenticate users (I'm not asking this) I'd only know
> if it is possible to achieve this behaviour with HttpHandlers by
> letting the request flow between them.
>
> Thanks in advance,
> ori
>
>
.



Relevant Pages

  • Forms authentication failed for the request
    ... authentication and a custom handler for jpg and gif files so I have the ... the handler by the web config file located in the directory. ... Forms authentication failed for the request. ...
    (microsoft.public.dotnet.framework)
  • Forms authentication failed for the request
    ... authentication and a custom handler for jpg and gif files so I have the ... the handler by the web config file located in the directory. ... Forms authentication failed for the request. ...
    (microsoft.public.dotnet.security)
  • How to continue request execution in a HttpHandler
    ... within a HttpHandler ProcessRequest method. ... against some Authentication method and then allows him to continue his ... I'd like to know how we can continue the execution flow to a normal ... PageHandler and invoke it's ProcessRequest method from my Handler (as I ...
    (microsoft.public.dotnet.framework.aspnet)
  • How to make .htm file to be authenticated by form authentication in asp. net ?
    ... I set up my web.config as form authentication. ... if I try to access .aspx file that will bring up a login.aspx ... I tried to get htm extension to be processed by the ASP.NET ... ISAPI filter by adding .htm in IIS configuration. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Forms authentication doesnt work for downloads
    ... Forms authentication is handled by the framework - thus you likely need to ... pass that type of file through the asp.net handler by mapping it in IIS... ... this doesn't work for downloads. ... I expected that people would also be routed to the login ...
    (microsoft.public.dotnet.framework.aspnet.security)