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