Back to Website
Show / Hide Table of Contents

Web API issues

  • Less than a minute to read

Web API methods return the 405 Method Not Allowed error

When you use PUT or DELETE requests, you may obtain the 405 Method Not Allowed error. At the same time, POST and GET requests may work properly.

Solution

You can disable WebDAV in the web.config file. Add the following code to the <system.webServer> node.

<modules>
    <remove name="WebDAVModule" />
</modules>
<handlers>
    <remove name="WebDAV" />
</handlers>

Alternatively, you can remove the WebDAV Publishing role from your server.

Back to top Copyright © 2001–2022 Aurigma, Inc. All rights reserved.
Loading...