HTTPModule in a sub-directory

G

Guest

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:

<configuration>
<location path="dir/dir/dirToHandle">
<system.web>
<httpModules>
<add name="ErrorHandler" type="ErrorModule.ErrorHandler, ErrorModule" />
</httpModules>
</system.web>
</location>

<system.web>
...all other settings such as compilation, customErrors, sessionState,
etc...
</system.web>
</configuration>

For some reason the HTTPModule is behaving as if it doesn't even exist. Is
the location element not setup properly? If I remove the location element
and put the httpModule element into the other system.web, everything works
just fine.

Thanks,
Ian Suttle
http://www.IanSuttle.com
 

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