500.19 🟪 .NET

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.

Seen on: .NET

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

  1. Install the .NET Hosting Bundle and restart IIS (iisreset)
  2. Install URL Rewrite if <rewrite> is used
  3. Grant IIS_IUSRS read access to the site folder

Detailed fix by platform

Windows

  1. powershell
    iisreset
    icacls C:\inetpub\myapp /grant "IIS_IUSRS:(OI)(CI)RX"

How to diagnose

  1. Code — 0x8007000d vs 0x80070005
  2. Modules — Installed in IIS
  3. 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:

🧠 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.