question

DM-1498 avatar image
0 Votes"
DM-1498 asked DM-1498 answered

App not working after upgrading from .Net Core 3.0 to .Net 5.0

Hi, I upgraded my web app to .Net 5.0 and it is no longer running on appservice. I am getting HTTP Error 500.31 - ANCM Failed to Find Native Dependencies

I changed my appservice > configuration > settings > .Net Version to 5.0.

I followed the instructions here and ran this in CloudShell Powershell command which says that I have v5.0:

 az webapp config show --resource-group <resource-group-name> --name <app-name> --query netFrameworkVersion

I dont know what to do, it was fine a few days ago and I dont think I have changed anything other than the .Net version in the app itself prior to deploying to appservice.




azure-webapps-content-deployment
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DM-1498 avatar image
0 Votes"
DM-1498 answered

Uninstalling all EF Core nuget packages and reinstalling them seems to have resolved this.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ryanchill avatar image
0 Votes"
ryanchill answered DM-1498 commented

@DM-1498, I would verify the dotnet core 5 on the host by running dotnet --info from the Kudu console. You can also redeploy your app as a self-contained app; see https://docs.microsoft.com/en-us/aspnet/core/test/troubleshoot-azure-iis?view=aspnetcore-5.0#50031-ancm-failed-to-find-native-dependencies.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks Ryan, I found a suggestion online to uninstall all EF Core nuget packages and reinstall them. This seems to have fixed it.

0 Votes 0 ·