Re: How to get a handler for a path

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi Marvin,

Thank you for your reply.

I have a hanlder that can handle any path but I let my users chose what
files, extensions (or wildcard) they want to handle.

So I don't know what they have configured.

And I would like to be able to get the actually configured handler for
any given path/verb so that I can know if that's mine and handle specially.

I'm a little confused. Is my understanding correct that:

1. You have control over the HttpHandler class only.
2. You don't know how the users of HttpHandler set their web.config and CAS
of server machine.
3. With above restrictions, you still want your HttpHandler to handle all
requests.

Am I right? If so as far as I know there's no way to do so because it's
insecure. If my understanding is wrong could you please clarify what you
want to do?

BTW, have you tried HttpModule? Can it solve this issue?

http://msdn.microsoft.com/en-us/library/aa719858(VS.71).aspx

Regards,
Allen Chen
Microsoft Online Support

.



Relevant Pages