After "more time than was prudent" debugging an issue with handlers not being applied correctly, I've determined that the SiteRoot/web.config shown in IIS Manager is not actually used by IIS.
How do I know this? I've replaced Web.config
with invalid XML - the site continues to run with default handlers and modules, while IIS Manager will, rightfully, throw an error on the invalid XML.
Information:
- The test/invalid Web.config is not being read by IIS, or it would fail to parse.
- Static content is being served, with a root relative to the Web.config.
- The test/invalid Web.config is being read by IIS Manager, as it fails to parse/load (as expected).
- Using "Explore" correctly opens up the folder the Web.config file exists in.
- The NTFS case-sensitivity is disabled per this answer. The same issue persists with both
web.config
andWeb.config
casings. - The AppPool is running under a local account and the effective NTFS access has been verified.
- There are no related Windows Application or System event logs indicating there was an error reading or parsing the configuration.
What might be occurring, and what further diagnosis can be done?