Net8 Azure Web App does not have net8 framework installed

chris thompson 5 Reputation points
2024-01-08T23:45:44.5+00:00

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

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.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,397 questions
{count} vote

3 answers

Sort by: Most helpful
  1. Divakarkumar-3696 375 Reputation points
    2024-01-09T05:32:32.2433333+00:00

    Hi Chris,

    Please make sure to add .NET core 8.0 runtime extension, by following steps

    • Go to your Web App
    • Under development tools , click on Extensions
    • Click Add and search for ASP.NET Core 8.0 Runtime extension
    • Proceed by clicking on Add button

    enter image description here

    Please 'Accept as answer' if it helped so that it can help others in the community looking for help on similar topics.

    1 person found this answer helpful.

  2. chris thompson 5 Reputation points
    2024-01-09T14:28:47.7+00:00

    This appears to have been an issue with Azure itself, as it fixed itself about 30 mins after I posted this question yesterday, however the site itself was down for a few hours.

    0 comments No comments

  3. Pinaki Ghatak 3,260 Reputation points Microsoft Employee
    2024-02-09T09:51:49.7766667+00:00

    Hello chris thomson Based on the error message you provided, it seems that the container only has .NET Core 6.0.24 installed, and not .NET Core 8.0.0.

    It's possible that the container image that your web app is using was updated to a version that only has .NET Core 6.0.24 installed. To resolve this issue, you can try updating your web app to use a container image that has .NET Core 8.0.0 installed.

    You can also try manually installing .NET Core 8.0.0 on the container by connecting to the container and running the following command: wget https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=8.0.0&arch=x64&rid=debian.10-x64 -O dotnet-core-applaunch chmod +x dotnet-core-applaunch ./dotnet-core-applaunch

    If neither of these solutions work, it's possible that there is an issue with your web app configuration.

    I hope this answers your question.

    0 comments No comments