IIS HTTP Error 500.19 - Internal Server Error (0x8007000d / 0x80070021)
Windows Server IIS 10, ASP.NET Core Hosting Bundle, web.config
IIS returns HTTP Error 500.19 with Config Error "Cannot read configuration file" or "This configuration section cannot be used at this path" (0x8007000d / 0x80070021 / 0x80070005).
What it means (root cause)
0x8007000d means malformed XML or an unrecognized module section (commonly missing URL Rewrite or ASP.NET Core Hosting Bundle); 0x80070021 means a section is locked at applicationHost.config; 0x80070005 means IIS_IUSRS lacks NTFS read permissions.
The symptom developers actually see: IIS returns HTTP Error 500.19 with Config Error "Cannot read configuration file" or "This configuration section cannot be used at this path" (0x8007000d / 0x80070021 / 0x80070005).
Step-by-step fix
Concrete, ordered steps from the dataset. Apply them in order; each line is a verified action, not generic advice.
- 1Validate web.config XML syntax and check which IIS modules are installed: Get-WebGlobalModule | Select-Object Name
- 2For ASP.NET Core apps failing on <aspNetCore>, install the matching .NET Hosting Bundle and restart IIS: iisreset
- 3If HRESULT is 0x80070021 (locked section such as handlers or modules), unlock it in PowerShell: & $env:windir\system32\inetsrv\appcmd.exe unlock config -section:system.webServer/handlers
- 4If HRESULT is 0x80070005, grant Read & Execute to IIS_IUSRS on the site root folder.
Where this error appears
Languages, frameworks, and runtimes where this error is observed (from the 2026 DevFixPro error dataset, retrieved 2026-08-29):
One of the highest-volume IIS deployment errors on Windows Server.
How to prevent it & common questions
Practical prevention plus the questions developers ask most about this error.
What does "IIS HTTP Error 500.19 - Internal Server Error (0x8007000d / 0x80070021)" mean?
0x8007000d means malformed XML or an unrecognized module section (commonly missing URL Rewrite or ASP.NET Core Hosting Bundle); 0x80070021 means a section is locked at applicationHost.config; 0x80070005 means IIS_IUSRS lacks NTFS read permissions.
Which environments are affected by IIS HTTP Error 500.19 - Internal Server Error (0x8007000d / 0x80070021)?
Windows Server IIS 10, ASP.NET Core Hosting Bundle, web.config
How do I fix IIS HTTP Error 500.19 - Internal Server Error (0x8007000d / 0x80070021)?
Validate web.config XML syntax and check which IIS modules are installed: Get-WebGlobalModule | Select-Object Name For ASP.NET Core apps failing on <aspNetCore>, install the matching .NET Hosting Bundle and restart IIS: iisreset If HRESULT is 0x80070021 (locked section such as handlers or modules), unlock it in PowerShell: & $env:windir\system32\inetsrv\appcmd.exe unlock config -section:system.webServer/handlers If HRESULT is 0x80070005, grant Read & Execute to IIS_IUSRS on the site root folder.
How do I prevent IIS HTTP Error 500.19 - Internal Server Error (0x8007000d / 0x80070021)?
Automate IIS feature/module checks (URL Rewrite, ANCMv2) in server provisioning scripts before deploying web.config.
Related DevFixPro tools
No dedicated DevFixPro tool maps to this error yet. Browse the full client-side toolkit instead: all developer tools →
Sources & attribution
- Error records aggregated from Google Search Console query gaps (2026-05-21~2026-08-18) for devfixpro.com, plus official framework docs (MDN, Node.js docs, Python docs, Go.dev, Rust book, Oracle Java docs, Docker docs, npm docs). Source dataset retrieved 2026-08-29. License: CC BY 4.0 — attribute DevFixPro (devfixpro.com).
- Official reference: https://learn.microsoft.com/en-us/troubleshoot/developer/webapps/iis/health-diagnostic-performance/http-error-500-19-webpage
- All cause, environment, fix and prevention text on this page is taken verbatim from the DevFixPro 2026 error dataset. DevFixPro does not invent root causes or fixes.
How this IIS HTTP Error 500.19 - Internal Server Error (0x8007000d / 0x80070021) page is built
Each error page is generated from a single record in the DevFixPro 2026 error dataset. The meaning, root cause, environments, fix steps, prevention, and official references are copied verbatim from that dataset and its official-doc sources; related-error links are computed from the error's category and explicit peer list. No root cause or fix is invented. The retrieval date for this dataset is 2026-08-29.