question

KaiLanglie-1251 avatar image
0 Votes"
KaiLanglie-1251 asked ·

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
10 |1000 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 ·

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)
· Share
10 |1000 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-6942 avatar image
0 Votes"
MichaelHansen-6942 answered ·

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

· 1 · Share
10 |1000 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 ·