Based on my understanding, you are trying to deploy an application developed on .Net Framework 4.7.2 under .Net 6. This will not work, either you need to choose the runtime stack as 4.xx or upgrade your project to .Net Core
See the Runtime stack that will be suitable for your application.
Refer the following walkthrough to deploy a .Net framework application to Azure app service.
Hope this helps