I am trying to deploy my website to the cloud and WebDeploy is failing
Detailed error message below.
I have checked for 8172 is open on Windows Firewall
I have configured a Windows Admin user for the WebDeploy operation
I have WebDeploy 3.6 & 3.5 installed
This is for IIS using VS2022.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VisualStudio\v17.0\Web\Microsoft.Web.Publishing.targets(4362,5): Error : Web deployment task failed. (Could not complete the request to remote agent URL 'https://ec2-xx-xxx-xxx-xxx.compute-1.amazonaws.com:8172/msdeploy.axd?site=xxxxxx'.)
2>
2>Could not complete the request to remote agent URL 'https://ec2-xx-xxx-xxx-xxx.compute-1.amazonaws.com:8172/msdeploy.axd?site=xxxxxx'.
2>The request was aborted: The request was canceled.
2>This method is not supported by this class.
2>
2>Could not complete the request to remote agent URL 'https://ec2-xx-xxx-xxx-xxx.compute-1.amazonaws.com:8172/msdeploy.axd?site=xxxxxx'.
2>The request was aborted: The request was canceled.
2>This method is not supported by this class.
2> at Microsoft.Web.Deployment.AgentClientProvider.GetHttpResponseHelper(HttpWebRequest request)
2> at Microsoft.Web.Deployment.AgentClientProvider.GetHttpResponse(HttpWebRequest request)
2> at Microsoft.Web.Deployment.AgentClientProvider.PerformHeadRequestHelper(Boolean getVersionInfo, Version& maximumSupportedVersion, Version& minimumSupportedVersion)
2> at Microsoft.Web.Deployment.AgentClientProvider..ctor(DeploymentProviderContext providerContext, DeploymentBaseContext baseContext, String serverVersion)
2> at Microsoft.Web.Deployment.DeploymentManager.CreateObjectPrivate(DeploymentProviderContext providerContext, DeploymentBaseOptions baseOptions, DeploymentObject sourceObject, String serverVersion)
2> at Microsoft.Web.Deployment.DeploymentObject.SyncTo(DeploymentProviderOptions providerOptions, DeploymentBaseOptions baseOptions, DeploymentSyncOptions syncOptions)
2> at Microsoft.Web.Publishing.Tasks.VSMSDeployObject.SyncTo(VSMSDeployObject destObject, Object syncOptions, IVSMSDeployHost _host)
2> at Microsoft.Web.Publishing.Tasks.BaseMSDeployDriver.InvokeMSdeploySync()
2> at Microsoft.Web.Publishing.Tasks.BaseMSDeployDriver.SyncThruMSDeploy()
2> at Microsoft.Web.Publishing.Tasks.VSMSDeploy.Execute()
2> Publish failed to deploy.
2>Done building project "xxxxxx.csproj" -- FAILED.
2>