Overview

This support article will describe how to resolve 405 HTTP verb error received when using DELETE, PUT or PATCH HTTP methods with a Web API.

Cause of the error is a result of the WebDAV handler conflicting with .NET Core handler.

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
.

Instructions

  1. Login into Plesk via the Conetix Control Panel.
  2. Once logged into Plesk, navigate and open the Website web.config file.

Recommend to first create a backup of the web.config file before editing.

  1. Find the section <system.webServer> and add the below code under the section and save.
    If the section <modules> and <handlers> already exist, just add the respective lines into the respective sections.

    <system.webServer>
        <modules>
            <remove name="WebDAVModule" />
        </modules>
        <handlers>
            <remove name="WebDAV" />
        </handlers>
  2. Test to confirm issue has been resolved.
Was this article helpful?

Related Articles