httpHandlers machine.config all applications

C

Chance Hopkins

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.
 

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

Forum statistics

Threads
473,981
Messages
2,570,188
Members
46,733
Latest member
LonaMonzon

Latest Threads

Top