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