server error:405 - HTTP verb used to access this page is not allowed

Viewed 174109

I have a php Facebook application which I have uploaded in a Microsoft server. When I run the application i get this error. Does anybody know the cause of this ?

405 - HTTP verb used to access this page is not allowed. The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.

10 Answers

you can add these lines to the web.config:

<system.webServer>
  <modules>
    <remove name="WebDAVModule" />
  </modules>
  <handlers>
    <remove name="WebDAV" />
  </handlers>
</system.webServer>

In my case, IIS was fine but.. uh.. all the files in the folder except web.config had been deleted (a manual deployment half-done on a test site).

I got this error when I was using jquery and lib was not present in the given path, once jquery lib is added back error was gone. [File name - calculate.html]

I had this err on the host too (my project was .net core2.1 webapi ) please add this code in web config in host :

<modules>
         <remove name="WebDAVModule" />
</modules>
Related