Property-path navigation returns an empty string when the <location>
wrapper is absent from the published web.config, causing AppendChild
to fail. SelectSingleNode("//aspNetCore") works regardless of structure.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>