468,310 Members | 1,428 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,310 developers. It's quick & easy.

httpHandlers machine.config all applications

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

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by some guy with a computer | last post: by
1 post views Thread by Patrick Kristiansen | last post: by
1 post views Thread by TJoker .NET | last post: by
4 posts views Thread by Grant Harmeyer | last post: by
reply views Thread by tshad | last post: by
reply views Thread by dloughran | last post: by
5 posts views Thread by Anonieko | last post: by
5 posts views Thread by =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.