locked
Call to .axd returns 404 RRS feed

  • Question

  • User-1197756793 posted

    I created my own .axd handler for uploading file and set everyting in the web.config.

    when I call the .axd, I get 404.

    I have another .axd which works fine on the same web application.

    in httpHandlers I have:

    <add verb="GET" path="ShowImage.axd" validate="false" type="ImageServer.StreamImage, ImageServer"/>
    <add verb="POST" path="UploadFileServer.axd" validate="false" type="UploadFileServer.UploadFile, UploadFileServer"/>



    in handlers (for iis7) I have:

    <add name="ImageServer" preCondition="integratedMode" path="ShowImage.axd" verb="GET" type="ImageServer.StreamImage, ImageServer"/>
    <add name="UploadFileServer" preCondition="integratedMode" path="UploadFileServer.axd" verb="POST" type="UploadFileServer.UploadFile, UploadFileServer"/>



    ShowImage.axd works fine, UploadFileServer returns 404.

    why?

    Monday, December 23, 2013 7:20 AM

All replies

  • User1734617369 posted

    Hi,

    Usually when you get a 404 for a handler that are configured to handle POST you are trying to access the handler using a GET request, how are you trying to access the handler?

    Best regards
    Johan

    Monday, December 23, 2013 11:01 AM
  • User-1197756793 posted

    I use Fiddler to test the request and I see:

    POST /website/webapp/UploadFileServer.axd HTTP/1.1

    The same call works on IE10, Chrome and firefox, but return 404 using IE 8/9.

    Do you have any idea why?

    Tuesday, December 24, 2013 12:36 PM
  • Thursday, December 26, 2013 10:51 PM