I know that this has already been asked here but the answer (using a handler instead) doesn’t solve the issue, as I’m using a third party component that doesn’t implement IHttpHandler.
So, again, is there any way to load/unload a HttpModule on a certain request?
EDIT: I forgot to mention that we’re working with .NET 2.0. I’m sorry about forgeting it.
I haven’t tested this, but a comment in this article seems to suggest that it is possible to register modules only for certain locations by using a
<location> element in web.config, e.g: