468,252 Members | 1,486 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

httpHandlers using machine.config and GAC

I can not get a custom httpHandler to fire using machine.config and an
assembly in the GAC.

It will not work if I move the assembly to the GAC, even though I have it
referenced correctly and add the assembly to the <compile> tag (all my other
controls I can call from the GAC this way).

It will not work if I have the handler specified where the rest are (*.cs,
*.aspx.....etc, in machine.config)

It DOES work if I put the assembly in the bin and add the handler to the
web.config or inside a specific <location path="mydomain.com"> tag in the
machine.config.
Can anyone tell me how to get it to fire with the assembly in the GAC and a
global add for all locations in the machine.config?

My main concern is not being able to put it in the GAC right now.

Thanks.

----------------------------------------------------------

THIS WORKS with assembly in bin (not with assembly in GAC):
[web.config]
<system.web>
<httpHandlers>
<add verb="GET" path="*.someextension" type="MyAssembly.IHttpHandler,
MyAssembly, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=47922ba823051f3f, Custom=null" />
</httpHandlers>
</system.web>

THIS WORKS with assembly in bin (not with assembly in GAC):
[machine.config]
<location path="mydomain.com">
<system.web>
<httpHandlers>
<add verb="GET" path="*.someextension" type="MyAssembly.IHttpHandler,
MyAssembly, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=47922ba823051f3f, Custom=null" />
</httpHandlers>
</system.web>
</location>

THIS DOESN"T WORK with assembly in bin or GAC:
[machine.config]
<system.web>
<httpHandlers>
<add verb="GET" path="*.someextension" type="MyAssembly.IHttpHandler,
MyAssembly, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=47922ba823051f3f, Custom=null" />
</httpHandlers>
</system.web>


Jul 21 '05 #1
0 1407

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
reply views Thread by Chance Hopkins | 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 zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.