I have an MVC2 application, and HttpHandler Library. The library, to simplify, serves an image. The problem is that if I invoke this handler from the root page ( http://whatever/ ), everything works fine. If, however, I change the Global.asax, so the same page now has the address of http://whatever/controller/action - it doesn't work (ALT text comes out instead of image).
I didn't write the handler library, but I have the code; so I put a breakpoint in ProcessRequest function of IHttpHandler implementation. For good situation the breakpoint gets triggered, but for bad case it isn't. So, I assume that the handler isn't invoked for non-root pages.
This is what I have in system.webServer/handlers section:
<add name="ImageHandler" verb="*"
path="ImageLib.axd" type="ImageHandler, ImageHandler" />
The view page has
<img src="ImageLib.axd?image=img001.jpg" alt="real image here" />
I don't know if MVC plays any role in it... the old WebForms application works fine with the same settings.
Hopefully, I provided all that I know. Of course, if something isn't clear, I'll be happy to explain as much as I can!