473,287 Members | 3,181 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,287 software developers and data experts.

HttpModule only in Subdirectories

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
May 15 '06 #1
1 1321
httpModules are not applied in sub directories -- they can only be configured
at the application level.

-Brock
http://staff.develop.com/ballen

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

May 15 '06 #2

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

Similar topics

2
by: Dominik Amon | last post by:
Hi, I'm using HttpModules in my ASP.NET Application (Note, i'm not using HttpHandlers!). Well, it works correctly for the hole application, but i wan't to remove the httpModule for a special...
7
by: nail | last post by:
Folks, I develop a HttpModule and it works correct, but one problem is occurs. After I register the httpmodule in the web.config, my pages (not testing http://localhost/site but...
4
by: Danny W | last post by:
Hi There! Is it possible to use HttpModule to replace the built-in ASP.NET Session object? I want to write a HttpModule that will handle storing and retrieving of session values from an external...
9
by: craigkenisston | last post by:
Hi, I'm writing an HttpModule in order to replace the parameters in the aspx pages to look like subdirectories. i.e. instead of having : myexample.com/default.aspx?category=cat1&subcat=cat2...
2
by: Simon-Pierre Jarry | last post by:
Hi, I created a custom HttpModule for managing the security of my application. in "Init" sub, I regsiter the events doing that : Public Sub Init(ByVal context As System.Web.HttpApplication)...
3
by: Manso | last post by:
Hi, We have an application that is installed in default web site (root web site). The same application will be installed as virtual directories under the root site e.g. <default web site>/app1...
2
by: walter | last post by:
Hi there, I know there is pool of HttpApplications, and for each request coming in, HttpRuntime will dedicate one from pool to serve the request. My questions are : 1. since HttpModule is plug...
1
by: Faraz | last post by:
Hi everyone, I am running into a slight problem. My understanding is that a custom HttpModule will run for every request made to the server, regardless of the extension. I do not experience this...
0
by: mattdev1000 | last post by:
Hello, I have an HttpModule that uses a lazy fetch to a secondary tier for calculating some values (the calculation is can be multisecond in the worse case). The HttpModule spins up a thread to...
3
by: Joseph Geretz | last post by:
I'm implementing a web application whose purpose in life is to act as a data conduit. Data is posted to my Web app in XML format, my application examines the data and forwards it onward by posting...
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: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
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...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.