If you are using msdeploy.exe command line, could you
please post the command line you are using? The URL is still not correct
for connecting to either the agent or handler service - this is usually
fixed by altering the computername value. You would want something like
the below, but if you post the command line I may be able to tell you
how to modify it:
(for non-admin using handler service if you have
configured delegation) msdeploy.exe -verb:sync -source:iisapp="MySite"
-dest:iisapp="MyRemoteSite",computername="https://myServer:8172/msdeploy.axd?site=MyRemoteSite",username=MyUser,password=MyPassword,authType=basic
-allowuntrusted
(for admin using agent service) msdeploy.exe
-verb:sync -source:iisapp="MySite"
-dest:iisapp="MyRemoteSite",computername=myServer,
username=AdminUser,password=AdminPassword
If you are using Visual
Studio publishing, in the Publish Web dialog where you enter Service URL
be sure to use either "servername" only to use handler service or
"http://servername" to use the agent.
If you are using the
handler (if you want to publish as a non-admin) make sure you are able
to connect first using an inetmgr remote connection.