HTTP Error 500.19 - Internal Server Error: The requested page cannot be accessed because the related configuration data for the page is invalid
IIS can’t read web.config — usually the ASP.NET Core Hosting Bundle (AspNetCoreModuleV2) or URL Rewrite module isn’t installed, or the XML is invalid.
HTTP Error 500.19The requested page cannot be accessed because the related configuration data for the page is invalidError Code 0x8007000d Meaning
Error Code 0x8007000d means an unknown section (e.g. <aspNetCore>, <rewrite>) because the module is missing. 0x80070005 means permissions on the folder/config.
Common causes
- ASP.NET Core Hosting Bundle not installed (0x8007000d)
- URL Rewrite module missing
- Invalid web.config XML
- App pool identity can’t read the folder (0x80070005)
⚡ Quick fix
- Install the .NET Hosting Bundle and restart IIS (iisreset)
- Install URL Rewrite if <rewrite> is used
- Grant IIS_IUSRS read access to the site folder
Detailed fix by platform
Windows
- powershell
iisreset icacls C:\inetpub\myapp /grant "IIS_IUSRS:(OI)(CI)RX"
How to diagnose
- Code — 0x8007000d vs 0x80070005
- Modules — Installed in IIS
- XML — Valid web.config
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in .NET
- FileNotFoundException assembly Could not load file or assembly 'X, Version=…' or one of its dependencies
- Unable to cast object of type System.InvalidCastException: Unable to cast object of type 'X' to type 'Y'
- NullReferenceException System.NullReferenceException: Object reference not set to an instance of an object
Other ways to find it
Where this error sits
Origin: Application & API. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 13 Oct 2026