Why I love and hate IIS7
Yeah, I missed you too guys.
Anyway, this took me a while to find out. But things like these are exactly what makes my job a continous research for enlightenment.
In a nutshell, seems that in IIS7 there’s a different way to setup httpHandlers. And I’m not referring to the simple change of parent node in the web.config ( from As many of you have probably already noticed, the handler tag now has a new name attribute. Yeah, an unique name. Right. No more. You can’t do anymore something like this: <addpath=“*.aspx,*.html,*.whatever“verb=“*“type=“MyHanlder.CustomHttpHanlder“/> But you’re forced to: As I usually say, beauty is in the eye of the beholder.
Probably this should make some bells ring. Anyway, the big news (the REALLY big news) is that with IIS7 httpHandlers do not support any more multiple mappings.
<add name=“MyCustomHanlder1“path=“*.aspx“verb=“*“type=“MyHanlder.CustomHttpHanlder“/>
<add name=“MyCustomHanlder2” path=“*.html“verb=“*“type=“MyHanlder.CustomHttpHanlder“/>
<add name=“MyCustomHanlder3” path=“*.whatever“verb=“*“type=“MyHanlder.CustomHttpHanlder“/>