Risca isso...<location>
parece funcionar bem. Porém, você precisa de ambos <web>
e <webServer>
entradas para garantir que funcione para o IIS e o Visual Studio Development Server. Por exemplo:
<location path="Files">`
<system.webServer>
<handlers>
<add name="MyHandler" path="*" verb="*" type="MyHttpHandler" />
</handlers>
</system.webServer>
<system.web>
<httpHandlers>
<add path="*" verb="*" type="MyHttpHandler" />
</httpHandlers>
</system.web>
</location>