473,326 Members | 2,805 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,326 software developers and data experts.

How to 'clear' httpModule?

My root app uses some basic url rewriting in an http module. This
interferes with an application I've just installed in a subdirectory

Removing the httpmodule reference from the web.config in the root app
makes both of the apps work together fine but for obvious reasons I'd
prefer another solution.

I tried using a <locationelement in the root web.config to 'clear'
the httpmodule AND I tried clearing in the web.config of the
subdirectory app. No luck with either one... unless I was doing
something wrong.

Any ideas why this isn't working for me? What sort of details do I
need to provide to get some of the helpful advice I see here so often?
:)

-
Brian
Dec 24 '06 #1
3 1366
You need to add a new <httpModules.. section in the child folder,
and add a "<remove name = ....
element to it.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Brian" wrote:
My root app uses some basic url rewriting in an http module. This
interferes with an application I've just installed in a subdirectory

Removing the httpmodule reference from the web.config in the root app
makes both of the apps work together fine but for obvious reasons I'd
prefer another solution.

I tried using a <locationelement in the root web.config to 'clear'
the httpmodule AND I tried clearing in the web.config of the
subdirectory app. No luck with either one... unless I was doing
something wrong.

Any ideas why this isn't working for me? What sort of details do I
need to provide to get some of the helpful advice I see here so often?
:)

-
Brian
Dec 24 '06 #2
On Sun, 24 Dec 2006 14:00:01 -0800, Peter Bromberg [C# MVP]
<pb*******@yahoo.yabbadabbadoo.comwrote:
>You need to add a new <httpModules.. section in the child folder,
and add a "<remove name = ....
element to it.
Peter
Holy !*%^ !!

It works!
(I'm amazed because I tried doing this in the child folder with <clear
/then added the <remove name=...in conjunction with clear. Then
tried same in root using a location element with path set to subdir.
And always pulling my hair out. Just needed to get a bit more
simplistic.

Now to see if it will work on the live site. (that's always the trick
isn't it).

:)
Thanks!
Dec 25 '06 #3
De Nada, Senor Brian.
:-)
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Brian" wrote:
On Sun, 24 Dec 2006 14:00:01 -0800, Peter Bromberg [C# MVP]
<pb*******@yahoo.yabbadabbadoo.comwrote:
You need to add a new <httpModules.. section in the child folder,
and add a "<remove name = ....
element to it.
Peter

Holy !*%^ !!

It works!
(I'm amazed because I tried doing this in the child folder with <clear
/then added the <remove name=...in conjunction with clear. Then
tried same in root using a location element with path set to subdir.
And always pulling my hair out. Just needed to get a bit more
simplistic.

Now to see if it will work on the live site. (that's always the trick
isn't it).

:)
Thanks!
Dec 25 '06 #4

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

Similar topics

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...
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)...
11
by: Markus Kling | last post by:
Hi, I have a web application that has two sub-applications. The root application defines two httpModules which shall not be loaded for the subapplications. I tried to achieve this by adding ...
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...
3
by: walter | last post by:
Hi , I thought it's simple ,but end up come here for help(as lots of other times). --I have several HttpModule added in the root thru web.config, but I want to remove some and add some new ones in...
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
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: 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: 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)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.