Adding httpModules problems

B

Bogdan Fiedur

Hi Everybody,


When we defined this section in web.config in the main root,


<httpModules>
<add name="ApplicationModule"
type="Myspace.Community.ApplicationModule,Community" />
</httpModules


applications which are defined within the root are having problems with
loading of the Community.dll which resided in the root/bin directory.


The problems seems to occur when child application are trying to inherit the
settings and load the dll but are looking for it in the local bin folders.

How do I either stop child application from inheritance of this portion of
parent web.config or inform them where the dll is located, which is
root/bin not root/child/bin


Bogdan Fiedur
 
R

Rich Denis

I am not sure if httpModules support a remove of modules in sub config
files, but You could add a "probing" element in the appropriate place in
order to get the apps to look in other directoories if they can't find
the bin they are looking for. Also you could GAC the assembly that is
used by all apps and decorate your module element with the public key,
culture and version.

Check this article out. Hope it helps:
http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/cpguide/html/cpconstep4locatingassemblythroughcodebasesorprobing.asp

Rich
 

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

Top