« Previous Next »

Answered Thread: HTTP error 405 using DefaultDocumentModule

Last post 02-06-2009 2:02 AM by suddenelfilio. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 02-05-2009, 5:28 PM

    HTTP error 405 using DefaultDocumentModule

    Here is my setup:

    - an iis website with 1 application called fifthplay.fifthcore.uploadserver
    - there is only 1 browesable file called uploadhandler.ashx
    - all default documents are deleted and only uploadhandler.ashx is left as default document.
    - all verbs are allowed for the *.ashx extension
    - the website is only accessible through basic authentication.

    We have some client software that is connecting to the web server with basic authentication and using HTTP POST

    My problem is when  I try to connect to http://localhost/fifthplay.fifthcore.uploadserver  with the client software I get a 405 Error. However when I connect directly to the http://localhost/fifthplay.fifthcore.uploadserver/uploadhandler.ashx page it works as expected.

    I've put FailedRequestTrace file online at http://suddenelfilio.info:8081/trace/fr000013.xml where you can see what happens.

    Any thoughts on how to solve this so I don't need to supply the uploadhandler.ashx in the url?

  • 02-05-2009, 5:39 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 6:13 PM
    • Redmond, WA
    • Posts 2,343

    Answered Re: HTTP error 405 using DefaultDocumentModule

    When you connect to http://localhost/fifthplay.fifthcore.uploadserver - IIS has to send a courtesy redirect to the url with the trailing / added so that any links in the response resolve correctly - however, most browsers will not re-post the entity body on a redirect, so the only option IIS has is to send a 405.  If, however, you request http://localhost/fifthplay.fifthcore.uploadserver/ (note the trailing /), it should work.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 02-06-2009, 2:02 AM In reply to

    Re: HTTP error 405 using DefaultDocumentModule

    That was indeed the solution. Thanks!

Page 1 of 1 (3 items)