1.8 KiB
1.8 KiB
IIS Handlers Section Unlock - Manual Guide
Problem
Error: "This configuration section cannot be used at this path. This happens when the section is locked at a parent level."
Solution 1: Using Script (Easiest)
Run UNLOCK-IIS-HANDLERS.bat as Administrator
Solution 2: Manual Unlock via IIS Manager
Step 1: Open IIS Manager
- Windows + R →
inetmgr→ Enter
Step 2: Unlock Handlers Section
- Select Server (root level - your computer name at top)
- Double-click "Feature Delegation" (in Management section)
- Find "Handler Mappings" in the list
- Right-click → "Read/Write" (or click "Read/Write" in Actions pane)
- Confirm if prompted
Step 3: Restart IIS
- Command Prompt (Admin):
iisreset - Or restart Application Pool in IIS Manager
Step 4: Test
- Browser:
http://localhost
Solution 3: Using PowerShell (Advanced)
# Run as Administrator
Import-Module WebAdministration
Set-WebConfigurationProperty -PSPath "MACHINE/WEBROOT/APPHOST" -Filter "system.webServer/handlers" -Name "overrideMode" -Value "Allow"
iisreset
Solution 4: Edit applicationHost.config (Advanced)
- Open:
C:\Windows\System32\inetsrv\config\applicationHost.config - Find:
<section name="handlers" overrideModeDefault="Deny" /> - Change to:
<section name="handlers" overrideModeDefault="Allow" /> - Save and restart IIS
Verify iisnode Installation
Check if iisnode is installed:
- Look for:
C:\Program Files\iisnode\ - Or check IIS Modules: IIS Manager → Server → Modules → Look for "iisnode"
If not installed:
- Download: https://github.com/Azure/iisnode/releases
- Install and restart IIS
After Unlocking
- Restart IIS:
iisreset - Test website:
http://localhost - Check logs if errors:
dist\iisnode\folder