Skip to content
English
  • There are no suggestions because the search field is empty.

Server Error - 405 - HTTP Verb Used To Access This Page Is Not Allowed

Search

Server Error - 405 - HTTP Verb Used To Access This Page Is Not Allowed

The Error


When accessing /cs-speedscreen or /mobile, you may see the following error:

Server Error - 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.


This error will not affect PHP-based applications, like cs-registration, admin, or booking. It is caused by the "WebDAV Module" interfering with normal operations.

The Fix


We will be editing a configuration file to instruct IIS to remove the WebDAV module.

  1. Go to c:\clubspeedapps\api
  2. Make a backup of web.config
  3. Open web.config
  4. Find <system.webServer>
  5. Within that tag, find the <modules> tag. (If it does not exist, create it by pasting <modules></modules> right after <system.webServer>)
  6. At the very bottom of that tag (right before </modules>), add:
    <remove name="WebDAVModule" />
  7. Within the <system.webServer> tag, find the <handlers> tag.
  8. At the very bottom of that tag (right before </handlers>), add:
    <remove name="WebDAV" />

Save your changes and restart IIS. The problem will be resolved now in some cases.

If it is not, then we also need to remove the WebDavModule handler from the specific affected apps.

To do so:

  1. Open IIS.
  2. Expand Sites --> Default Web Sites and select "cs-speedscreen".
  3. Double click Handler Mappings.
  4. Select WebDAV (it'll be near the bottom).
  5. Click "Remove" in the right-hand column.
  6. Repeat steps 2-5, but select "mobile" instead (if /mobile was also broken).

This should now be resolved in the majority of cases. An IIS restart should not be necessary.

For reference, here's the relative tag structure that should be present, with extra content omitted:

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

Related Articles