I had the same error. In my case, the problem was the old version of "msdeploy.exe".
After some searching, I found one "msdeploy.exe" in the folder "C: \ Program Files (x86) \ IIS \ Microsoft Web Deploy \ msdeploy.exe" that caused the problem and the other in the folder "C: \ Program Files ( x86) \ IIS \ Microsoft Web Deploy V3 \ msdeploy.exe. "
Since I do not know how to change the path in Visual Studio to a newer version, I just saved the old folder and copied the full contents of the new folder to the old one.
After that, everything worked for me, and I was able to post to Azure :) I hope this helps.
source share