By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,269 Members | 1,561 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,269 IT Pros & Developers. It's quick & easy.

httpHandlers machine.config all applications

P: n/a
Does anyone know how to get a custom httpHandler to fire for all applications in machine.config for an assembly in the GAC, without
using seperate location tags?

For instance, this works for a single domain:

<location path="mydomain.com" allowOverride="false" >
<system.web>
<httpHandlers>
<add verb="*" path="*.mycustomExtension" type="MyCustomClass,MyDLL, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=47922ba823051f3f, Custom=null" />
</httpHandlers>
</system.web>
</location>
if I add it like this, it says "Parser Error Message: Sections must only appear once per config file. See the help topic <location>
for exceptions.". This is because httpHandlers are declared further down the config file.

<location>
<system.web>
<httpHandlers>
<add verb="*" path="*.mycustomExtension" type="MyCustomClass,MyDLL, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=47922ba823051f3f, Custom=null" />
</httpHandlers>
</system.web>
</location>
if I delete the above, and add the custom handler with all the OTHER httpHandlers, it doesn't fire at all (I'm actually wondering if
they are now)

Thanks for any help.
Nov 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.