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.

Exact message you may see HTTP Error 500.19The requested page cannot be accessed because the related configuration data for the page is invalidError Code 0x8007000d
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:

Where this error sits

Origin: Application & API. Errors that are often confused with or caused by this one (click to open):

0x80070005 — Windows Error 0x80070005 (E_ACCESSDENIED): Access is denied (Windows)0x80070005500.30 — HTTP Error 500.30 - ASP.NET Core app failed to start (.NET)500.30An unhandled error has occurred — Blazor: An unhandled error has occurred. Reload 🗙 (.NET)An unhandled error ha…antiforgery token could not be decrypted — ASP.NET Core: The antiforgery token could not be decrypted / The required antiforgery cookie is not present (400 Bad Request) (.NET)antiforgery token cou…Cannot access a disposed context instance — ObjectDisposedException: Cannot access a disposed context instance (.NET)Cannot access a dispo…Collection was modified — InvalidOperationException: Collection was modified; enumeration operation may not execute (.NET)Collection was modifi…The request matched multiple endpoints — AmbiguousMatchException: The request matched multiple endpoints. Matches: X, Y (.NET)The request matched m…500.19

Explore the map of this error Full error map →

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