'VS2022 IE8 WebDeploy - Could not connect

Why am I unable to publish my website?

I am using Visual Studio 2022.
I am running WebDeploy 3.6 on an AWS EC2 instance.
I have setup up the connection parameters in VS Build -> Publish.
When clicking the "Validate" button I get the error:

Could not connect to the remote computer ("ec2-xx-xxx-xxx-xxx.compute-1.amazonaws.com"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started. Learn more at: https://go.microsoft.com/fwlink /?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE. Unable to connect to the remote server

I have checked the firewall is open for port 8172 on the AWS service and the local instance.
I followed the given link and checked that "Web Management Service " is running.
I have tried restarting VS to no avail.
The WebDeploy/Publish account has admin privileges, I have confirmed the credentials.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source