- 9 minutes to read

HTTP Error 405.0 - Method Not Allowed

Quickly resolve the HTTP Error 405.0 - Method Not Allowed in the Nodinite Web Client and Web API. This guide explains why the error occurs and provides actionable steps to fix it, so that editing and deleting resources works again.

  • Step-by-step solution for 405 errors in the Web Client and Web API.
  • Remove WebDAV conflicts in IIS for reliable updates and deletes.
  • Diagnose and fix verb restrictions in Request Filtering.
  • Visual examples and configuration tips for fast troubleshooting.

What is HTTP Error 405?

HTTP Error 405.0 - Method Not Allowed occurs when a web server receives a valid HTTP request but the HTTP verb (method) used is not permitted for the requested resource. For example:

  • Attempting to PUT or DELETE when only GET and POST are allowed
  • Sending a POST request to a resource that only accepts GET
  • Using PATCH when the endpoint doesn't support it

In the Nodinite Web Client and Web API, 405 errors typically occur when:

  • Editing resources (PUT requests) - Updating Monitor Views, Alarm Plugins, or other configuration
  • Deleting resources (DELETE requests) - Removing entities from the system
  • Creating resources (POST requests) - Adding new configurations

Common HTTP Verbs in Nodinite

HTTP Verb Purpose Example in Nodinite
GET Retrieve data Loading Monitor Views, reading Log Events
POST Create new resource Adding new Alarm Plugin, creating Monitor View
PUT Update existing resource Editing Monitor View configuration
DELETE Remove resource Deleting an Alarm Plugin entry
PATCH Partial update Updating specific fields in a configuration

How WebDAV Causes the 405

On Windows Server, each Nodinite Core Service is its own IIS web site, hosted by the ASP.NET Core Module V2 from the .NET 10 Hosting Bundle. IIS runs its own modules first. When the WebDAV module is installed, it claims PUT and DELETE requests before they reach Nodinite, and answers 405.

flowchart LR Browser["fa:fa-user Web Client in the browser"] subgraph IIS["Web API site in IIS"] Filter["fa:fa-filter Request Filtering"] DAV["fa:fa-ban WebDAV module"] Core["fa:fa-gears ASP.NET Core Module V2"] end App["fa:fa-cloud Nodinite Web API"] Browser -->|"PUT or DELETE"| Filter Filter -->|"Verb allowed"| DAV DAV -->|"WebDAV installed: 405"| Browser DAV -.->|"WebDAV removed"| Core Core -->|"200 OK"| App style Browser fill:#2678BD style Filter fill:#FFD525 style DAV fill:#c33d34 style Core fill:#93d16d style App fill:#93d16d

Diagram: a PUT or DELETE from the Web Client passes Request Filtering (yellow) and is stopped by the WebDAV module (red) unless WebDAV is removed; then the ASP.NET Core Module V2 hands it to the Web API (green). See IIS Windows Features for the WebDAV recommendation.

Diagnosing the Issue

Before applying fixes, identify the root cause of the 405 error.

Step 1: Identify the HTTP Verb

Check which HTTP verb is being blocked. In the browser developer tools (F12):

  1. Open Network tab
  2. Reproduce the error (e.g., click Save on an edited resource)
  3. Look for the failed request (usually red)
  4. Check the Method column - is it PUT, DELETE, POST, or PATCH?
  5. Click the request and view Headers → Response Headers for more details

Step 2: Check IIS Failed Request Logs

If detailed error information is not visible in the browser:

  1. Open IIS Manager
  2. Navigate to the Nodinite Web API site
  3. Enable Failed Request Tracing (if not already enabled)
  4. Reproduce the 405 error
  5. Review the trace logs at C:\inetpub\logs\FailedReqLogFiles\

Look for error details like:

ModuleName: WebDAVModule
Notification: EXECUTE_REQUEST_HANDLER
HttpStatus: 405
HttpReason: Method Not Allowed
HttpSubStatus: 0

Step 3: Review Windows Event Viewer

Check for IIS-related errors:

  1. Open Event Viewer (Windows key + R → eventvwr.msc)
  2. Navigate to Windows Logs → Application
  3. Filter for Source: IIS or Source: IIS AspNetCore Module V2
  4. Look for warnings or errors matching your timestamp

Information

Most Common Cause: WebDAV Interference

If WebDAV is installed and you receive a 405 error when editing (Update/Delete) resources in the Web API or Web Client, follow the solution below. Apply the fix to each Nodinite web site in IIS, or remove WebDAV from the server when no other application needs it.

Affected Components

Tip

Quick Fix: In 90% of cases, removing WebDAV from IIS Modules and Handler Mappings resolves 405 errors in Nodinite. See Solution 1: Remove WebDAV below.

Example Error Message in the Web Client

Unknown error in Web Client
Example: Unknown error message in the Web Client when 405 occurs.

Full Error Message

WebDAV Module Method Not Allowed error
Example: Full error message from WebDAV module in IIS.

Solutions

Solution 1: Remove WebDAV (Most Common)

Why this fixes 405 errors: WebDAV (Web Distributed Authoring and Versioning) is an IIS module that intercepts PUT, DELETE, and other HTTP verbs to provide file-system-like operations over HTTP. When enabled, it blocks these verbs from reaching the Nodinite application, causing 405 errors. On a dedicated Nodinite server, remove the WebDAV feature completely with the script in WebDAV Recommendation for Nodinite 7.

Step-by-Step: Remove WebDAV from IIS

Remove WebDAV from Modules and from Handler Mappings in IIS when you can't remove the feature from the server.
IIS Home screen
Example: IIS Home screen for module and handler management.

Remove from Modules

Remove WebDAV from Modules
Example: Removing WebDAV from IIS Modules.

  1. Open IIS Manager
  2. Select the Nodinite Web Client or Web API site
  3. Double-click Modules
  4. Locate WebDAVModule in the list
  5. Right-click → Remove
  6. Click Yes to confirm

Remove from Handler Mappings

Remove WebDAV from Handler Mappings
Example: Removing WebDAV from IIS Handler Mappings.

  1. In IIS Manager, navigate to the same site
  2. Double-click Handler Mappings
  3. Locate WebDAV in the list
  4. Right-click → Remove
  5. Click Yes to confirm

Note

Restart IIS or recycle the Application Pool after this operation.

# Recycle all application pools and restart IIS
iisreset

Verify web.config Exclusions

The web.config of the Web API and Web Client sites should remove the WebDAV module and handler:

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

Note

The system.webServer example is partial. Your web.config contains additional sections, such as the aspNetCore handler; don't remove them.

Solution 2: Check Request Filtering

If removing WebDAV doesn't resolve the issue, check IIS Request Filtering settings.

Step 1: Review HTTP Verbs in Request Filtering

  1. Open IIS Manager

  2. Select the Nodinite site

  3. Double-click Request Filtering

  4. Click HTTP Verbs tab

  5. Ensure the following verbs are allowed (not explicitly denied):

    • GET
    • POST
    • PUT
    • DELETE
    • PATCH
    • OPTIONS

Step 2: Verify web.config Request Filtering

Your web.config should not include overly restrictive verb filtering:

<system.webServer>
  <security>
    <requestFiltering>
      <!-- Ensure verbs are not explicitly denied -->
      <verbs allowUnlisted="true">
        <!-- No <remove> or <add verb="..." allowed="false" /> for PUT, DELETE, PATCH -->
      </verbs>
    </requestFiltering>
  </security>
</system.webServer>

Tip

Set allowUnlisted="true" to permit all HTTP verbs by default, then only deny specific verbs if absolutely necessary for security.

Solution 3: Application Pool Configuration

Ensure the Application Pool of each Nodinite site matches what the CLI created:

  1. Open IIS Manager

  2. Click Application Pools in the left pane

  3. Locate the App Pool of the Nodinite site

  4. Right-click → Advanced Settings

  5. Verify:

    • .NET CLR Version: No Managed Code (the .NET 10 Hosting Bundle hosts the site)
    • Managed Pipeline Mode: Integrated
    • Identity: the service account set in the Portal, see IIS Authentication settings

After making changes, right-click the Application Pool and select Recycle.

Solution 4: CORS and Preflight Requests

If 405 errors occur with OPTIONS requests (CORS preflight), configure CORS in web.config:

<system.webServer>
  <httpProtocol>
    <customHeaders>
      <add name="Access-Control-Allow-Origin" value="https://nodinite.contoso.com" />
      <add name="Access-Control-Allow-Methods" value="GET,POST,PUT,DELETE,PATCH,OPTIONS" />
      <add name="Access-Control-Allow-Headers" value="Content-Type,Authorization" />
    </customHeaders>
  </httpProtocol>
</system.webServer>

Warning

Never use Access-Control-Allow-Origin: * in production; it allows requests from any domain. Specify the exact origins, as in the example above.

Troubleshooting Checklist

Before contacting support, verify:

  • ✅ WebDAV removed from the server, or from IIS Modules and Handler Mappings
  • ✅ Application Pool recycled after configuration changes
  • ✅ web.config includes WebDAV exclusions (<remove name="WebDAVModule" />)
  • ✅ Request Filtering allows PUT, DELETE, PATCH verbs
  • ✅ Application Pool uses No Managed Code in Integrated mode
  • ✅ No antivirus/firewall blocking HTTP verbs
  • ✅ Failed Request Tracing enabled for detailed diagnostics

Testing Your Fix

After applying solutions, test with PowerShell. Replace nodinite.contoso.com:<port> with the host and port of your environment's Web API; the port is set per environment in the Nodinite Portal (Step 4: Servers → Core platform services). Find the available operations in Scalar at https://nodinite.contoso.com:<port>/scalar or in Swagger at /swagger, and pick a PUT and a DELETE operation on a test item you can safely change.

First, check that the Web API site answers: https://nodinite.contoso.com:<port>/isalive returns true.

Test PUT Request

# Replace with your Nodinite Web API host and port
$uri = "https://nodinite.contoso.com:<port>/api/<resource>/<test-id>"   # a PUT operation from Scalar
$body = @{ Name = "Test" }|ConvertTo-Json   # use the body that the operation in Scalar expects
$headers = @{ "Content-Type" = "application/json" }

Invoke-RestMethod -Uri $uri -Method PUT -Body $body -Headers $headers -UseDefaultCredentials

Test DELETE Request

$uri = "https://nodinite.contoso.com:<port>/api/<resource>/<test-id>"   # a DELETE operation on a test item
Invoke-RestMethod -Uri $uri -Method DELETE -UseDefaultCredentials

Expected: HTTP 200 OK (or 204 No Content for DELETE)
Error: HTTP 405 indicates the issue persists

Security Considerations

After enabling PUT/DELETE verbs:

  1. Keep authentication on - The Web API requires Windows Authentication or an OAuth 2.0 bearer token, see Managing the Web API
  2. Use HTTPS - Encrypt all traffic, see How to perform hardening on your Nodinite installation
  3. Restrict IP addresses - Use IIS IP Address and Domain Restrictions to limit access
  4. Audit changes - Review changes in Log Audits

Example web.config security configuration:

<system.webServer>
  <security>
    <requestFiltering>
      <!-- Block potentially dangerous verbs if not needed -->
      <verbs allowUnlisted="true">
        <add verb="TRACE" allowed="false" />
        <add verb="TRACK" allowed="false" />
      </verbs>
    </requestFiltering>
  </security>
</system.webServer>

Still Getting 405 Errors?

If none of the above solutions work:

  1. Check Antivirus/Firewall - Some security software blocks PUT/DELETE requests
  2. Review Reverse Proxy - If using a reverse proxy (nginx, HAProxy), verify it forwards all HTTP verbs
  3. Check Load Balancer - Azure Application Gateway or F5 may filter verbs
  4. IIS Rewrite Rules - Custom URL rewrite rules may interfere with verbs, see IIS URL Rewrite – Legacy v6 Redirect

Contact Nodinite Support with:

  • Failed Request Trace logs
  • web.config file (sanitize sensitive data)
  • IIS Module and Handler Mapping screenshots
  • Browser Network tab HAR export (F12 → Network → Right-click → Save as HAR)

Next Steps