1

I've deployed my code to an app service using Azure Devops CI release agent. Once I browse to the App service, it shows this error, stating that .net 5 isn't installed, and lists what is.

'The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found.'

The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found.

This is what I have selected in the app service configuration, as it looks to be the only .Net 5 option. enter image description here

Dylan
  • 1,068
  • 12
  • 25

1 Answers1

1

Based on my test, the Azure App Service could support the .Net 5.

From the error message, it is indeed show that .net 5 hasn't been installed in the app service.

I could reproduce this issue too.

enter image description here

But when I select the .Net5 (Early Access) in Configuration and Save it, it will update the web app settings. Then the website could run successfully.

enter image description here

From your screenshot, you already selected this option. You could try to restart the App service and check if it could work.

On the other hand, you could try to create a new App Service with .Net5 (Early Access). Then you could directly use the App service with .Net 5.

enter image description here

Here is a ticket with the detailed introduction, you could refer to it.

Kevin Lu-MSFT
  • 20,786
  • 3
  • 19
  • 28
  • Are you sure that your application is .NET 5, not .NET 5 preview 7? – Lukasz Szczygielek Nov 25 '20 at 11:54
  • 1
    This app services was created brand new as a .net 5 app service. I've already tried restarting it and switching it again just in case to no avail. – Dylan Nov 25 '20 at 13:32
  • Hi @KryptoBeard. It seems that the App Service hasn't downloaded the correct version. It downloads the version: .NET 5 preview 7. Could you share the App **Location** ? I created an App Service in `Central US` and it could download the 5.0.0 and run the app successfully. – Kevin Lu-MSFT Nov 26 '20 at 06:08
  • 1
    @KevinLu-MSFT , This one is currently in USGov Arizona, could that possibly be the reason? I figured they would all have .net 5. – Dylan Nov 26 '20 at 14:41
  • @KryptoBeard. This may cause problems, this region does not seem to be in my selection list. Can you try the Central US region? – Kevin Lu-MSFT Nov 27 '20 at 01:18
  • 1
    @KevinLu-MSFT that doesn't seem to be an option in azure gov. – Dylan Nov 27 '20 at 03:29
  • Hi @KryptoBeard. Thanks for your information. I am using [regular azure service](https://azure.microsoft.com/en-us/features/azure-portal/). So it could work in my side. I think there could be differences between azure and azure gov, which will cause this problem. – Kevin Lu-MSFT Nov 27 '20 at 08:39
  • I am having this exact same issue and my App Service's region in Azure is "UK West", so I'm not sure it's an issue with Azure gov. My project is targeting .NET 5.0, and I've configured the Web App's stack setting to .NET 5 (Early Access). When I run it, I get the exact same error as the OP. I've tried restarting the App Service and installing the ASP.NET Core 5.0 (x86) and (x64) Runtime extensions into it, all to no avail. – Philip Stratford Jan 23 '21 at 15:25