I have enabled >NET 8 (LTS) (Early Access) but my .net 8 app will not start

Goran Zidar 10 Reputation points
2023-11-17T22:34:19.5633333+00:00

As you can see from the screenshot below the app service has been configured to support .NET 8.0 but the app fails to start because the runtime is somehow missing.User's image

I have tried to explicitly install .net 8 runtime via the site extensions but that did not work either. Is it just that the roll out of .net 8 is not complete (despite claims online that it should be) or is there something else I need to do to enable it?

Any help would be appreciated.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,234 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,130 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,004 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Ken Kam Hung, Lin 91 Reputation points
    2023-11-19T12:13:24.3266667+00:00

    I just created a new Web App, and selected .NET 8 as the runtime. I then create a new ASP.NET Core and target in .NET 8 too. I add some code to show the runtime on the page. I can run the ASP.NET Core in Azure Web App under .NET 8 without any problem. Could you try to create new Azure Web App, deploy your app and try to have a look if it works?

    User's image

    User's image

    User's image

    If it works, then we could check if there is any other settings need to make changes too.


  2. Ken Kam Hung, Lin 91 Reputation points
    2023-11-20T00:51:00.54+00:00

    Hi Goran,

    Could you go to Kudu and click Runtime versions to check if .NET 8 is being listed?

    User's image

    If it is not listed, you could either do one of the following options,

    1. But, you can also run dotnet publish --runtime win-x86 to embed your own .Net Core version with your application. It adds some overhead but you control runtime version.

    .NET Core RID Catalog

    1. Add site extension to force it to install .NET 8 runtime (either x86/x64)

    User's image

    Hope it could resolve your problem. If it resolved, please mark this as an answer.

    Many thanks.

    0 comments No comments