<httpmodule remove> tag not working

G

Guest

I have a .NET 2.0 application running on Windows 2003 Enterprise.

Root directory adds a custom http module.

<httpModules>
<add name="SitesModule" type="Classes.SitesModule"/>
</httpModules>

That works...

In a subdirectory I try and remove it

<httpModules>
<remove name="SitesModule" />
</httpModules>

Problem is it still gets called.

This was ok running on a Windows 2000 server. The code broke as soon as it
was moved to Windows 2003.

Any ideas would be appreciated.
 
Joined
Nov 11, 2006
Messages
1
Reaction score
0
It seems that the remove tag only works in context of it's own application space. Given this, you would need to make this directory a virtual application in IIS.

The alternative is to build in some sort of URL filtering into your module. This may or may not be practical depending on your application.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top