I have 2 custom .axd handlers in my project. Both defined in web.config under httpHandlers and handlers:
httpHandlers:
<add verb="GET" path="ShowImage.axd" validate="false" type="ImageServer.StreamImage, ImageServer"/>
<add verb="GET,POST" path="Upload.axd" validate="false" type="UploadFileServer.UploadFile, UploadFileServer"/>
handlers:
<add name="ImageServer" preCondition="integratedMode" path="ShowImage.axd" verb="GET" type="ImageServer.StreamImage, ImageServer"/>
<add name="UploadFileServer" preCondition="integratedMode" path="Upload.axd" verb="GET,POST" type="UploadFileServer.UploadFile, UploadFileServer"/>
when I call ShowImage.axd everything is working fine.
The request in fiddler looks like:
GET /WebApp/ShowImage.axd?Bla=x HTTP/1.1
when I call Upload.axd, I get 404.
The request in fiddler looks like:
POST /WebApp/Upload.axd HTTP/1.1
Both .dll's are in the Bin folder.
why?
Can you please post the code how you are calling the Upload handler. Till then try making your upload hander use only "POST" verb and see if it works.