Dylan
Dylan

Reputation: 1118

.Net 5 Azure App service missing dependencies

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

Upvotes: 1

Views: 906

Answers (1)

Kevin Lu-MSFT
Kevin Lu-MSFT

Reputation: 35269

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.

Upvotes: 1

Related Questions