question

KaiLanglie-1251 avatar image
0 Votes"
KaiLanglie-1251 asked sanm-7576 commented

Azure App Service Unable to Target 5.0.100 HTTP Error 500.31 - ANCM Failed to Find Native Dependencies

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

Everything I've read led me to believe that .NET 5 is ready to be used for an app service. So I made the necessary changes and merged my code. The build (pipeline) went find. The release made it to the App Service. But for some reason the machine with the App service does not have .NET 5 installed. My question is, am I wrong in assuming that Azure is raeady to host .NET 5 applications. If it is possible, then how do I do this?

dotnet-runtime
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.

JaliyaUdagedara avatar image
0 Votes"
JaliyaUdagedara answered JaliyaUdagedara edited

Azure App Services supports .NET 5: Read More: .NET 5 now available in App Service

Did you change the target framework of your app service to be .NET 5?

44267-image.png

If you are creating a new app service, you can see .NET 5 under Runtime stacks.

44331-image.png

Please let us know if you are still facing issues trying to target to .NET 5.


image.png (234.7 KiB)
image.png (147.9 KiB)
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.

MichaelHansen-9428 avatar image
0 Votes"
MichaelHansen-9428 answered GravityAPI-0085 published

After changing Platform from 32 to 64 bit, everything worked fine.

· 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.

Changing to .NET 5 as suggested, solved the problem.
It was on a different runtime stack

0 Votes 0 ·
DM-1498 avatar image
0 Votes"
DM-1498 answered sanm-7576 commented

Also having this problem, but chaging to .Net 5.0 did not solve the problem.

I cannot change to 64bit because the drop down is greyed out.

When I run set pro in the console it appears to be on 64bit, even though it says 32bit in the greyed out dropdown.

This is very frustrating.

· 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.

64bit will not shown if your webapp price tier is F1. Please make it B1 and try

0 Votes 0 ·