I developed .netcore 3.1 application and tried to deploy it using visual studio 2019.
I've created app service in azure:
But when I publish the app I'm getting application error page (azure error page).
I went to bash and saw that .netcore that installed on the machine is 2.2 and not 3.1 although I selected 3.1:
This is what I see in diagnostics:
I even tried self contained app and still not working.