Tuesday, October 10, 2017

.net Core HTTP Error 405.0 - Method Not Allowed

When you try to do PUT and DELETE request using .net Core you get  "HTTP Error 405.0 - Method Not Allowed",

The solution is :
The WebDAVModule set PUT and DELETE request methods disabled by default. so you should disable it.

inside your Web.config :

  <system.webServer>   
    <modules runAllManagedModulesForAllRequests="false">
          <remove name="WebDAVModule" />
    </modules>
  </system.webServer>

No comments: