Problem mapping HttpHandler --> HTTP Error 404 Not Found Problem mapping HttpHandler --> HTTP Error 404 Not Found asp.net asp.net

Problem mapping HttpHandler --> HTTP Error 404 Not Found


Are you using IIS7, if so is the application pool running in classic or pipelined mode? If it is IIS7 in pipelined mode then the handler reference needs to go into the following section

<system.webServer>    <handlers>    </handlers><system.webServer>

rather than in the following section.

<system.web>    <httpHandlers>    </httpHandlers></system.web>


Just as a guide for those stuck with this problem I found the crucial attribute to be..

resourceType="Unspecified"

I originally followed a Microsoft example to set this up and they had it as

resourceType="File"

which just kept giving me 404 errors. My HTTPHandler is returning graphics.

Hope this helps :)


i am using IIS7, the solution is:

in section

<system.web>    <httpHandlers>        <add verb="*" path="*.ashx" type="CVOS.MyDocumentHandler"/>    </httpHandlers><system.web>

and section

<system.webServer>    <handlers>       <add name="pdfHandler" verb="*" path="*.ashx"   type="CVOS.MyDocumentHandler" />     </handlers></system.webServer>