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
<httpmodules>
<clear />
</httpmodules>
within the web.config file of the sub-applications.
My problem is that the compiler stil tries to load the referenced assemblies
and states them (correctly) as missing.
What did I miss?
Thanks
Markus 11 1530
<clear /> removes HttpModule mappings from an application.
<remove name=...> removes the HttpModule class from an application.
<httpModules>
<add type="classname,assemblyname" name="modulename"/>
<remove name="modulename"/>
<clear/>
</httpModules>
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Markus Kling" <ma**********@nospam.nospam> wrote in message
news:uA**************@tk2msftngp13.phx.gbl... 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
<httpmodules> <clear /> </httpmodules>
within the web.config file of the sub-applications.
My problem is that the compiler stil tries to load the referenced assemblies and states them (correctly) as missing.
What did I miss?
Thanks Markus
Hi Juan,
that's exactly what I did!!
wwwroot\web.config
....
<httpModules>
<add type="NK.Utils.LogInitializer,NK.Utils" name="LogInitializer" />
<add type="awisto.Web.UrlRewrite.HttpModule,awisto.Web. UrlRewrite"
name="UrlRewrite" />
</httpModules>
...
wwwroot\subapp\web.config
....
<httpmodules>
<clear />
</httpmodules>
....
This results in a Pre-bin failure for the NK.Utils dll within the
"wwwroot\subapp" application. That's correct since the DLL is not in the
wwwroot\subapp\bin directory.
My question was why it is not removed!!
Thanks again,
Markus
"Juan T. Llibre" <no***********@nowhere.com> schrieb im Newsbeitrag
news:%2***************@TK2MSFTNGP15.phx.gbl... <clear /> removes HttpModule mappings from an application.
<remove name=...> removes the HttpModule class from an application.
<httpModules> <add type="classname,assemblyname" name="modulename"/> <remove name="modulename"/> <clear/> </httpModules>
Juan T. Llibre, ASP.NET MVP ASP.NET FAQ : http://asp.net.do/faq/ ASPNETFAQ.COM : http://www.aspnetfaq.com/ Foros de ASP.NET en Español : http://asp.net.do/foros/ ====================================== "Markus Kling" <ma**********@nospam.nospam> wrote in message news:uA**************@tk2msftngp13.phx.gbl... 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
<httpmodules> <clear /> </httpmodules>
within the web.config file of the sub-applications.
My problem is that the compiler stil tries to load the referenced assemblies and states them (correctly) as missing.
What did I miss?
Thanks Markus
Doesn't, in wwwroot\subapp\web.config :
<httpModules>
<remove name="LogInitializer"/>
<remove name="UrlRewrite"/>
<clear />
</httpModules>
work ?
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Markus Kling" <ma**********@nospam.nospam> wrote in message
news:OS**************@TK2MSFTNGP11.phx.gbl... Hi Juan,
that's exactly what I did!!
wwwroot\web.config ... <httpModules> <add type="NK.Utils.LogInitializer,NK.Utils" name="LogInitializer" /> <add type="awisto.Web.UrlRewrite.HttpModule,awisto.Web. UrlRewrite" name="UrlRewrite" /> </httpModules> ..
wwwroot\subapp\web.config ... <httpmodules> <clear /> </httpmodules> ...
This results in a Pre-bin failure for the NK.Utils dll within the "wwwroot\subapp" application. That's correct since the DLL is not in the wwwroot\subapp\bin directory.
My question was why it is not removed!!
Thanks again, Markus
"Juan T. Llibre" <no***********@nowhere.com> schrieb im Newsbeitrag news:%2***************@TK2MSFTNGP15.phx.gbl... <clear /> removes HttpModule mappings from an application.
<remove name=...> removes the HttpModule class from an application.
<httpModules> <add type="classname,assemblyname" name="modulename"/> <remove name="modulename"/> <clear/> </httpModules>
Juan T. Llibre, ASP.NET MVP ASP.NET FAQ : http://asp.net.do/faq/ ASPNETFAQ.COM : http://www.aspnetfaq.com/ Foros de ASP.NET en Español : http://asp.net.do/foros/ ====================================== "Markus Kling" <ma**********@nospam.nospam> wrote in message news:uA**************@tk2msftngp13.phx.gbl... 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
<httpmodules> <clear /> </httpmodules>
within the web.config file of the sub-applications.
My problem is that the compiler stil tries to load the referenced assemblies and states them (correctly) as missing.
What did I miss?
Thanks Markus
No, that's exactly what's confuses me.
"Juan T. Llibre" <no***********@nowhere.com> schrieb im Newsbeitrag
news:uW**************@TK2MSFTNGP09.phx.gbl... Doesn't, in wwwroot\subapp\web.config :
<httpModules> <remove name="LogInitializer"/> <remove name="UrlRewrite"/> <clear /> </httpModules>
work ?
Hi, Mark.
OK, from your post it wasn't clear whether you were removing
the modules by using <remove name="LogInitializer"/> and
<remove name="UrlRewrite"/> since you only included <clear />
in your reply.
If that's the case, I'd bug it at the Feedback Center : http://lab.msdn.microsoft.com/productfeedback/
You'll need a Passport account to be able to file bug reports there.
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Markus Kling" <ma**********@nospam.nospam> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl... No, that's exactly what's confuses me.
"Juan T. Llibre" <no***********@nowhere.com> schrieb im Newsbeitrag news:uW**************@TK2MSFTNGP09.phx.gbl... Doesn't, in wwwroot\subapp\web.config :
<httpModules> <remove name="LogInitializer"/> <remove name="UrlRewrite"/> <clear /> </httpModules>
work ?
Just to be clear. The issues are for .Net 1.2. Haven't crosschecked with
..Net 2.0 runtime.
Markus
"Juan T. Llibre" <no***********@nowhere.com> schrieb im Newsbeitrag
news:OB**************@TK2MSFTNGP12.phx.gbl... Hi, Mark.
OK, from your post it wasn't clear whether you were removing the modules by using <remove name="LogInitializer"/> and <remove name="UrlRewrite"/> since you only included <clear /> in your reply.
If that's the case, I'd bug it at the Feedback Center :
http://lab.msdn.microsoft.com/productfeedback/
You'll need a Passport account to be able to file bug reports there.
Juan T. Llibre, ASP.NET MVP ASP.NET FAQ : http://asp.net.do/faq/ ASPNETFAQ.COM : http://www.aspnetfaq.com/ Foros de ASP.NET en Español : http://asp.net.do/foros/ ====================================== "Markus Kling" <ma**********@nospam.nospam> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl... No, that's exactly what's confuses me.
"Juan T. Llibre" <no***********@nowhere.com> schrieb im Newsbeitrag news:uW**************@TK2MSFTNGP09.phx.gbl... Doesn't, in wwwroot\subapp\web.config :
<httpModules> <remove name="LogInitializer"/> <remove name="UrlRewrite"/> <clear /> </httpModules>
work ?
<remove...> works the same way in 1.1.
See : http://msdn.microsoft.com/library/de...ttpmodules.asp
and http://msdn.microsoft.com/library/de...lessection.asp
for 1.1
and http://msdn2.microsoft.com/en-us/library/81b3ekbd.aspx
for 2.0
The only caveat is that the value of <remove>
must exactly match that of a previous <add> directive.
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Markus Kling" <ma**********@nospam.nospam> wrote in message
news:et**************@TK2MSFTNGP14.phx.gbl... Just to be clear. The issues are for .Net 1.2. Haven't crosschecked with .Net 2.0 runtime.
Markus
"Juan T. Llibre" <no***********@nowhere.com> schrieb im Newsbeitrag news:OB**************@TK2MSFTNGP12.phx.gbl... Hi, Mark.
OK, from your post it wasn't clear whether you were removing the modules by using <remove name="LogInitializer"/> and <remove name="UrlRewrite"/> since you only included <clear /> in your reply.
If that's the case, I'd bug it at the Feedback Center :
http://lab.msdn.microsoft.com/productfeedback/
You'll need a Passport account to be able to file bug reports there.
Juan T. Llibre, ASP.NET MVP ASP.NET FAQ : http://asp.net.do/faq/ ASPNETFAQ.COM : http://www.aspnetfaq.com/ Foros de ASP.NET en Español : http://asp.net.do/foros/ ====================================== "Markus Kling" <ma**********@nospam.nospam> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl... No, that's exactly what's confuses me.
"Juan T. Llibre" <no***********@nowhere.com> schrieb im Newsbeitrag news:uW**************@TK2MSFTNGP09.phx.gbl... Doesn't, in wwwroot\subapp\web.config :
<httpModules> <remove name="LogInitializer"/> <remove name="UrlRewrite"/> <clear /> </httpModules>
work ?
My configration is definitly correct.
Should be a bug.
Markus
"Juan T. Llibre" <no***********@nowhere.com> schrieb im Newsbeitrag
news:un***************@TK2MSFTNGP10.phx.gbl... <remove...> works the same way in 1.1.
See : http://msdn.microsoft.com/library/de...ttpmodules.asp and http://msdn.microsoft.com/library/de...lessection.asp for 1.1
and http://msdn2.microsoft.com/en-us/library/81b3ekbd.aspx for 2.0
The only caveat is that the value of <remove> must exactly match that of a previous <add> directive. Juan T. Llibre, ASP.NET MVP ASP.NET FAQ : http://asp.net.do/faq/ ASPNETFAQ.COM : http://www.aspnetfaq.com/ Foros de ASP.NET en Español : http://asp.net.do/foros/ ====================================== "Markus Kling" <ma**********@nospam.nospam> wrote in message news:et**************@TK2MSFTNGP14.phx.gbl... Just to be clear. The issues are for .Net 1.2. Haven't crosschecked with .Net 2.0 runtime.
Markus
"Juan T. Llibre" <no***********@nowhere.com> schrieb im Newsbeitrag news:OB**************@TK2MSFTNGP12.phx.gbl... Hi, Mark.
OK, from your post it wasn't clear whether you were removing the modules by using <remove name="LogInitializer"/> and <remove name="UrlRewrite"/> since you only included <clear /> in your reply.
If that's the case, I'd bug it at the Feedback Center :
http://lab.msdn.microsoft.com/productfeedback/
You'll need a Passport account to be able to file bug reports there.
Juan T. Llibre, ASP.NET MVP ASP.NET FAQ : http://asp.net.do/faq/ ASPNETFAQ.COM : http://www.aspnetfaq.com/ Foros de ASP.NET en Español : http://asp.net.do/foros/ ====================================== "Markus Kling" <ma**********@nospam.nospam> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl... No, that's exactly what's confuses me.
"Juan T. Llibre" <no***********@nowhere.com> schrieb im Newsbeitrag news:uW**************@TK2MSFTNGP09.phx.gbl... > Doesn't, in wwwroot\subapp\web.config : > > <httpModules> > <remove name="LogInitializer"/> > <remove name="UrlRewrite"/> > <clear /> > </httpModules> > > work ? >
Someone having the same problem... http://discuss.develop.com/archives/...&F=&S=&P=10801
"Markus Kling" <ma**********@nospam.nospam> schrieb im Newsbeitrag
news:OC**************@TK2MSFTNGP10.phx.gbl... My configration is definitly correct. Should be a bug.
Markus
"Juan T. Llibre" <no***********@nowhere.com> schrieb im Newsbeitrag news:un***************@TK2MSFTNGP10.phx.gbl... <remove...> works the same way in 1.1.
See : http://msdn.microsoft.com/library/de...ttpmodules.asp and http://msdn.microsoft.com/library/de...lessection.asp for 1.1
and http://msdn2.microsoft.com/en-us/library/81b3ekbd.aspx for 2.0
The only caveat is that the value of <remove> must exactly match that of a previous <add> directive. Juan T. Llibre, ASP.NET MVP ASP.NET FAQ : http://asp.net.do/faq/ ASPNETFAQ.COM : http://www.aspnetfaq.com/ Foros de ASP.NET en Español : http://asp.net.do/foros/ ====================================== "Markus Kling" <ma**********@nospam.nospam> wrote in message news:et**************@TK2MSFTNGP14.phx.gbl... Just to be clear. The issues are for .Net 1.2. Haven't crosschecked with .Net 2.0 runtime.
Markus
"Juan T. Llibre" <no***********@nowhere.com> schrieb im Newsbeitrag news:OB**************@TK2MSFTNGP12.phx.gbl... Hi, Mark.
OK, from your post it wasn't clear whether you were removing the modules by using <remove name="LogInitializer"/> and <remove name="UrlRewrite"/> since you only included <clear /> in your reply.
If that's the case, I'd bug it at the Feedback Center :
http://lab.msdn.microsoft.com/productfeedback/
You'll need a Passport account to be able to file bug reports there.
Juan T. Llibre, ASP.NET MVP ASP.NET FAQ : http://asp.net.do/faq/ ASPNETFAQ.COM : http://www.aspnetfaq.com/ Foros de ASP.NET en Español : http://asp.net.do/foros/ ====================================== "Markus Kling" <ma**********@nospam.nospam> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl... > No, that's exactly what's confuses me. > > > "Juan T. Llibre" <no***********@nowhere.com> schrieb im Newsbeitrag > news:uW**************@TK2MSFTNGP09.phx.gbl... >> Doesn't, in wwwroot\subapp\web.config : >> >> <httpModules> >> <remove name="LogInitializer"/> >> <remove name="UrlRewrite"/> >> <clear /> >> </httpModules> >> >> work ? >> > >
Definitely, bug it.
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Markus Kling" <ma**********@nospam.nospam> wrote in message
news:uw**************@TK2MSFTNGP09.phx.gbl... Someone having the same problem... http://discuss.develop.com/archives/...&F=&S=&P=10801
"Markus Kling" <ma**********@nospam.nospam> schrieb im Newsbeitrag news:OC**************@TK2MSFTNGP10.phx.gbl... My configration is definitly correct. Should be a bug.
Markus
"Juan T. Llibre" <no***********@nowhere.com> schrieb im Newsbeitrag news:un***************@TK2MSFTNGP10.phx.gbl... <remove...> works the same way in 1.1.
See : http://msdn.microsoft.com/library/de...ttpmodules.asp and http://msdn.microsoft.com/library/de...lessection.asp for 1.1
and http://msdn2.microsoft.com/en-us/library/81b3ekbd.aspx for 2.0
The only caveat is that the value of <remove> must exactly match that of a previous <add> directive. Juan T. Llibre, ASP.NET MVP ASP.NET FAQ : http://asp.net.do/faq/ ASPNETFAQ.COM : http://www.aspnetfaq.com/ Foros de ASP.NET en Español : http://asp.net.do/foros/ ====================================== "Markus Kling" <ma**********@nospam.nospam> wrote in message news:et**************@TK2MSFTNGP14.phx.gbl... Just to be clear. The issues are for .Net 1.2. Haven't crosschecked with .Net 2.0 runtime.
Markus
"Juan T. Llibre" <no***********@nowhere.com> schrieb im Newsbeitrag news:OB**************@TK2MSFTNGP12.phx.gbl... > Hi, Mark. > > OK, from your post it wasn't clear whether you were removing > the modules by using <remove name="LogInitializer"/> and > <remove name="UrlRewrite"/> since you only included <clear /> > in your reply. > > If that's the case, I'd bug it at the Feedback Center : > > http://lab.msdn.microsoft.com/productfeedback/ > > You'll need a Passport account to be able to file bug reports there. > > > > > Juan T. Llibre, ASP.NET MVP > ASP.NET FAQ : http://asp.net.do/faq/ > ASPNETFAQ.COM : http://www.aspnetfaq.com/ > Foros de ASP.NET en Español : http://asp.net.do/foros/ > ====================================== > "Markus Kling" <ma**********@nospam.nospam> wrote in message > news:%2****************@TK2MSFTNGP14.phx.gbl... >> No, that's exactly what's confuses me. >> >> >> "Juan T. Llibre" <no***********@nowhere.com> schrieb im Newsbeitrag >> news:uW**************@TK2MSFTNGP09.phx.gbl... >>> Doesn't, in wwwroot\subapp\web.config : >>> >>> <httpModules> >>> <remove name="LogInitializer"/> >>> <remove name="UrlRewrite"/> >>> <clear /> >>> </httpModules> >>> >>> work ? >>> >> >> > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Aurel |
last post by:
Hi,
I have create a httpmodule but I have some problems. I can't access to the
session. Even if I create my class like this
public class myModule: IHttpModule, IRequiresSessionState
{}
...
|
by: Steen Tøttrup |
last post by:
This is what I'm doing:
I'm using Httpmodules and Httphandlers to control access to files (images,
movies, etc.), but have run into quite a problem when several files are being
requested at the...
|
by: Ian Suttle |
last post by:
I have created an HTTPModule for error handling, which I only want to handle
a specified directory structure. In the root of my application, I have
altered the web.config file as follows:
...
|
by: Craig Neuwirt |
last post by:
I have 2 HttpModules in my app. I use CallContext to set some thread
specific info. Recently, I ran into a problem in which it appeared that the
2 HttpModules were executed in multiple threads. ...
|
by: msnews.microsoft.com |
last post by:
Hi... I'm learning about HTTPModules, so please allow me a beginner's
question.
I read that "you gain low-level access to the HTTPRequests and responses
processed by the ASP.NET framework"....
|
by: Chip Page |
last post by:
Hello,
In my top-level Web.config, I had added a number of httpModules.
In a particular sub-directory in the application, I wish to prevent one of
the HttpModules from executing. My attempts...
|
by: tshad |
last post by:
I noticed in my Http modules that all the BeginRequests are handled for each
Module before the EndRequests is handled (at least that seems to be the
case).
I have 2 HttpModules each with...
|
by: Me |
last post by:
Hi
Does anyone have any good uses for httpModules?
Im mean what kind of things have people done with them? Are they good
at particular tasks?
What are they not good at?
Many thanks all!
|
by: Mikael Syska |
last post by:
Hi,
Google gives alot of hits on httpmodules but I can't seem to find any
useful on my problem ...
I have a site where I'm using my own auth system ... ( guess it could be
better but its...
|
by: =?Utf-8?B?TUNN?= |
last post by:
What do the following httpModules do?
UrlAuthorization
FileAuthorization
ServiceModel
ErrorHandlerModule
ScriptModule
|
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...
|
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: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
| | |