title: How to solve HTTP Error 405.0 - Method Not Allowed ? Handler Verb Error
body: <p>Below is the error I am receiving when trying to execute <strong>php</strong> in <strong>localhost</strong>. Its comes from when I click a form input that then executes the <strong>php</strong> which uses the '<strong>POST</strong>' request. The errors looks like its coming from a handler that doesn't have the <strong>POST</strong> <strong>verb</strong> defined in it. <strong>My questions is, is how do I locate which handler this error is coming from?</strong> . I have had a look at some online resources but none of are using <strong>IIS</strong> or at least the newer versions of it so <strong>its hard to follow.</strong> </p>
  
  <blockquote>
    <p>HTTP Error 405.0 - Method Not Allowed The page you are looking for
    cannot be displayed because an invalid method (HTTP verb) is being
    used.</p>
    
    <p>Most likely causes: The request sent to the Web server used an HTTP
    verb that is not allowed by the module configured to handle the
    request. A request was sent to the server that contained an invalid
    HTTP verb. The request is for static content and contains an HTTP verb
    other than GET or HEAD. A request was sent to a virtual directory
    using the HTTP verb POST and the default document is a static file
    that does not support HTTP verbs other than GET or HEAD.</p>
  </blockquote>
  
  <p>Below are the steps the error gives to solve it. I have looked through the logs and found it <strong>definitely</strong> the <strong>POST</strong> request. I am not sure how to create a tracer though. </p>
  
  <blockquote>
    <p>Things you can try: Verify the list of verbs enabled for the module
    handler this request was sent to, and ensure that this verb should be
    allowed for the Web site. Check the IIS log file to see which verb is
    not allowed for the request. Create a tracing rule to track failed
    requests for this <code>HTTP</code> status code.</p>
  </blockquote>
  
  <p>I am aware there are other posts similar to this and I have been through a majority of them with no resolution.</p>
  
  <p><strong>Thank you in advance.</strong>  </p>
  
  <ul>
  <li>Solved by removing handler and adding it back in the webconfig file with verb="*". </li>
  </ul>