I have found a related solution here
Also there are possible new security procedures in play here, it could be local host is being locked down and this is also being checked on.
We do not have ipsecurity in play but what is displaying is a 500.19 error "The requested page cannot be accessed because the related configuration data for the page is invalid."
The config source points to the handlers tag on line 56 of our web.config as the bone of contention. modules tag just above it in the sytem.WebServer section.
I did, similar to the article referenced, set 'handlers' and 'modules' in applicationhost.config to "Allow" from "Deny". But for whatever reason I have -5- of these config file to pick from. Not knowing which VS 2022 is trying to work with I changed all 5.
Before these edits, if I tried to drill into these sections via the config editor in IIS, I would get the same error text. Now that these "Allow" values are set, I can drill in with IIS Manager | Config Editor and not get any errors.
This seems to indicate IIS just isn't letting local host do anything. Even with these edits, I can't get local host to fire up.
Here is a screen shot of the error:
Here is the code in the web.config:
<system.webServer>
<modules>
<add name="Spring" type="Spring.Context.Support.WebSupportModule, Spring.Web" preCondition="managedHandler" />
<add name="SecurityFilter" type="XXXX.XXXX.Domain.Security.SecurityFilter, XXXX.XXXX.Domain" preCondition="managedHandler" />
</modules>
<handlers>
<add name="*.aspx_*" path="*.aspx" verb="*" type="Spring.Web.Support.PageHandlerFactory, Spring.Web" preCondition="integratedMode,runtimeVersionv2.0" />
</handlers>
Here is the code with handlers and modules modified from one of the applicationhost.config files:
<sectionGroup name="system.webServer">
<section name="asp" overrideModeDefault="Deny" />
<section name="caching" overrideModeDefault="Allow" />
<section name="cgi" overrideModeDefault="Deny" />
<section name="defaultDocument" overrideModeDefault="Allow" />
<section name="directoryBrowse" overrideModeDefault="Allow" />
<section name="fastCgi" allowDefinition="AppHostOnly" overrideModeDefault="Deny" />
<section name="globalModules" allowDefinition="AppHostOnly" overrideModeDefault="Deny" />
<section name="handlers" overrideModeDefault="Allow" />
<section name="httpCompression" overrideModeDefault="Allow" allowDefinition="Everywhere" />
<section name="httpErrors" overrideModeDefault="Allow" />
<section name="httpLogging" overrideModeDefault="Deny" />
<section name="httpProtocol" overrideModeDefault="Allow" />
<section name="httpRedirect" overrideModeDefault="Allow" />
<section name="httpTracing" overrideModeDefault="Deny" />
<section name="isapiFilters" allowDefinition="MachineToApplication" overrideModeDefault="Deny" />
<section name="modules" allowDefinition="MachineToApplication" overrideModeDefault="Allow" />