I had a working azure web app running on ASP.NET Core 8 since early december 2023, but today the site has gone down because the azure container only seems to have net 6.x installed.
My web app is configured to run on net 8:
![User's image](https://learn-attachment.microsoft.com/api/attachments/4c83cc42-dd4f-403b-8aae-4fca2f628b32?platform=QnA)
When I connect to the app to view the startup issue, I get the following error, which clearly shows that the dotnet 8 framework is not installed:
2024-01-07T23:13:14.550732649Z The following frameworks were found:
2024-01-07T23:13:14.550735749Z 6.0.24 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]
2024-01-07T23:13:14.550751750Z Learn about framework resolution:
2024-01-07T23:13:14.550766850Z https://aka.ms/dotnet/app-launch-failed
2024-01-07T23:13:14.550773250Z To install missing framework, download:
2024-01-07T23:13:14.550776450Z https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=8.0.0&arch=x64&rid=debian.10-x64
I have attempted to stop and restart the app, change the web app framework back to net6/7 and then back to 8 (starting it each time I changed it), but none of this has resolved the issue.
There have not been any changes made to the web app (code nor Azure config) since before December 25, 2023.
I had been having a similar issue for most of 2023 when I was running the app on net7, where the web app configuration would revert to net6 every time I did a deployment, requiring me to manually stop the app after the deploy, set the configuration back to net7, and then start the app again. Not sure if that behavior is related to this current issue.