Global Handler in IIS7 (Classic Mode) gives "Failed to Execute" error
Posted
by Akash Kava
on Stack Overflow
See other posts from Stack Overflow
or by Akash Kava
Published on 2010-05-24T13:37:33Z
Indexed on
2010/05/24
13:41 UTC
Read the original article
Hit count: 476
iis7
|ihttphandler
I have made a custom handler called MyIndexHandler and I want it to handle *.index requests, now as I want this handler to be executed by any website, I installed my handler with following two steps in IIS manager.
- Add MyIndexHandler.dll in GAC
- Add Managed Module for *.index, the drop down in IIS displays my index handler correctly so it means it did find it correctly from the GAC.
- I added Script map for aspnet_isapi.dll for *.index (this is required for classic mode)
Now in any of my website if I try xyz.index, my handler does not get called and it returns "Failed to execute URL", now this only happens when IIS is unable to find the mapped handler, but I already have defined mapped handler at IIS level and when i try to add entry in web.config manually for this handler, it tells me you can not define multiple handler, it means that IIS finds my handler, mapping but for some reason it does not execute it.
© Stack Overflow or respective owner