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

Pramod Shivaprasad (RBEI/PAC-CSW1) 16 Reputation points
2022-02-25T14:47:27.447+00:00

I have upgraded my Web API from version netcoreapp3.1 to version net6.0. When I launch it from Visual studio as localhost, it will launch successfully.

I have published the app to the azure app service to which it was previously published. Publish is successful. When I launch the URL I get the below error

" HTTP Error 500.31 - ANCM Failed to Find Native Dependencies Common solutions to this issue: The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found. Specific error detected by ANCM: Error: An assembly specified in the application dependencies manifest (Microsoft.AspNetCore.AzureAppServices.HostingStartup.deps.json) was not found: package: 'Microsoft.Extensions.Logging.AzureAppServices', version: '6.0.1' path: 'lib/net6.0/Microsoft.Extensions.Logging.AzureAppServices.dll' "

I checked dotnet --info command, .net 6 framework is installed.

Anyone has faced a similar issue? Could you please help me with this

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,798 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Pramod Shivaprasad (RBEI/PAC-CSW1) 16 Reputation points
    2022-03-02T03:35:00.397+00:00

    I am using an extension "ASP.NET Core Logging Integration" in my app service. It was not updated to the latest version. Updating the extension to the current latest version that is v 6.0.2 fixed the issue. Thank you all.

    3 people found this answer helpful.
    0 comments No comments

  2. Michael Taylor 54,401 Reputation points
    2022-02-25T16:02:37.823+00:00

    Did you update your app service configuration to use the new runtime? Refer to the steps here.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.