Since you have posted the question on azure-webapps
tag, just to clarify, are you leveraging Azure WebApps and attempting to deploy to WebApp via FTP as outlined in the Azure doc (below) or publishing files onto an Azure VM via FTP or something else?
Please do provide more details about your scenario, to assist you better. Share screenshot of the error after concealing any private details.
Deploy your app to Azure App Service using FTP/S
https://learn.microsoft.com/azure/app-service/deploy-ftp?tabs=portal