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
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