473,322 Members | 1,540 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Multiple IHttpHandlerFactory Implementations Active At Once

I'm just wondering if it's possible to have multiple HttpHandlerFactory
classes active at once in an ASP.NET 3.5 app.

In particular, I want for the "built-in" HttpHandlerFactory that ships with
ASP.NET to service .aspx requests.

I separately want for another HttpHandlerFactory that I write to service a
SUBSET of those requests.

I do plan to implement custom URL Rewriting (via custom http module that I
add to the pipeline for begin_request) so that all incoming requests could
arrive for .aspx pages, then based on my URL Rewriting logic, be translated
into another extension.

So the end result would be that after URL Rewriting (per my custom logic),
..aspx page requests are routed to ASP.NET's HttpHandlerFacotory. Then,
separately, all .xyz page requests (where .xyz is my custom "flag"
extension) get routed to my custom IHttpHandlerFactory implementation.

Questions:
1. Would the above work? (i.e., UrlRewriting separates all aspx requests
into both .aspx and .xyz requests... which are subsequently serviced by
different HttpHandlerFactory classes)?

2. Is there perhaps a better way to achieve the objective of having multiple
HttpHandlerFactories active at once (meaning for a given application, even
though obviously not for any one specific request).

Thanks!

Jun 27 '08 #1
0 1143

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: yabba | last post by:
w2k server... after rebooting the event viewer/application log shows multiple restarts of Active Server Pages and they continue to build in memory as each start produces a IWAM_SERVERNAME in the...
1
by: Bartosz Krzywicki | last post by:
I have the problem with Session object witch is null, when I implement IHttpHandlerFactory. Implementing IRequiresSessionState interface doesn't help. My code is like this: class MyController :...
3
by: Bartosz Krzywicki | last post by:
I have the problem with Session object witch is null, when I implement IHttpHandlerFactory. Implementing IRequiresSessionState interface doesn't help. My code is like this: class MyController :...
1
by: RJN | last post by:
Hi Sorry for posting this again. Requirement is to allow the user to download multiple files at once from browser. User will be displayed a grid on the browser which will list the various files...
0
by: Netveloper | last post by:
Hi, I'm playing around with url rewriting and I have come across a problem which I can't seem to get past. The general ide is to have a IHttpHandlerFactory class which checks the incoming...
3
by: Hope Paka | last post by:
I want to use my custom url extension instead of .aspx. I can achieve this by writing a custom handler that implements the IHttpHandlerFactory. In the GetHandler method of the IHttpHandlerFactory i...
5
by: John H Clark | last post by:
I am building an IHttpHandlerFactory to process all requests to folders in my site. When an attempt to access internal folders is detected the request is rerouted to an error page. All other...
8
by: yossi.kreinin | last post by:
Hi! When are multiple definitions of global variables with the same name considered legal in C, and how is it different from C++? It appears that in terms of assembly language, some C...
2
by: Steven Voordijk | last post by:
I'm using the IHttpHandlerFactory to do URL rewriting and generate webpages. One of those pages offers the possibility to upload a file with a <input type="file"...tag. When the user clicks the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.