Under Settings > Configuration for my Azure Web App Service, if I change (and then Save) the .NET Version to either .NET 9 (STS), which I would prefer, or to .NET 8 (LTS) and then Publish, having referenced the appropriate net9.0 or net8.0 Target Framework in my solution, the Web App fails to spin up properly.
The following error is displayed:
HTTP Error 500.30 - ASP.NET Core app failed to start
Meanwhile, Azure has reverted the Configuration for my App Service to .NET 6 (LTS) (deprecated).
Furthermore, I am using the Self-contained Deployment Mode.