I have created IIS7 asset handler for my application which deals with images and stylesheets by serving them from a CMS database. For some reason the new IIS7 handlers section doesn't allow multiple paths for a handler, so you have to map each path like so..

<handlers>
    <add name="AssetHandlerGif" path="*.gif" verb="GET" type="CMS.AssetHandler" />
    <add name="AssetHandlerJpg" path="*.jpg" verb="GET" type="CMS.AssetHandler" />
    <add name="AssetHandlerPng" path="*.png" verb="GET" type="CMS.AssetHandler" />
    <add name="AssetHandlerCss" path="*.css" verb="GET" type="CMS.AssetHandler" />
<handlers>

This seems a bit odd since with the older httpHandler you were do this in one line

<httpHandlers> 
    <add verb="GET" path="*.jpg,*.gif,*.png,*.css" type="CMS.AssetHandler" validate="false"/>
</httpHandlers>

So can someone tell my why this does not work..am i doing something wrong here?

<handlers>
    <add name="AssetHandler" path="*.jpg,*.gif,*.png,*.css" verb="GET" type="CMS.AssetHandler" />
<handlers>

kick it on DotNetKicks.com