HttpModule only in Subdirectories

D

Dominik Amon

Hi!

I'd like to use an http-module only in the subdirectory called
"administration"

My first try was something like this:
<configuration>

.....

<location path="Administration">
<system.web>
<httpModules>
<add type="WsfRs.Extensions.Client.WebAuthModule, WSF_RS_ConsumerLib"
name="WsfAuthentication" />
</httpModules>
</system.web>
</location>
....
</configuration>

Regarding to the MS documentation this should solve my problem - But it
doesn't
using * and / at the begining and ending is not allowed by web.config
parser.

The module doesn't fire any event?

If i'm using the control in the "normal" systen.web node, it fires all
events

i also tried a web.config in the sub directory - it didn't work (also i
always had troubles with sub web.configs)

What's wrong?

thanks,
dominik
 
B

Brock Allen

httpModules are not applied in sub directories -- they can only be configured
at the application level.
 

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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top