14

For ASP.NET project MSBuild gives some files in E:\Build such as:

  • TestProjectA.deploy.cmd
  • TestProjectA.SetParameters.xml
  • TestProjectA.SourceManifest.xml
  • TestProjectA.zip

To deploy from Windows 7 to Windows Server 2008 R2 (IIS 7)

Executing command gives following error message:

Command

C:\Program Files\IIS\Microsoft Web Deploy V3>msdeploy.exe -verb:sync  -source:contentPath='E:\Build'  -dest:contentPath='ra/files-to-pub',ComputerName="https://<IP>:8172/msdeploy.axd?site=ra",UserName='DEV\Administrator',Password='MyPassword',AuthType='Basic' -enableRule:DoNotDeleteRule -whatif -allowUntrusted

Error Message:

Info: Using ID 'd1bbee7a-e940-4be1-b41d-1847b3e7022d' for connections to the remote server. Error Code: ERROR_COULD_NOT_CONNECT_TO_REMOTESVC More Information: Could not connect to the remote computer ("[IP ADDRESS]") using the specified process ("Web Management Service") because the server did not respond. Make sure that the process ("Web Management Service") is started on the remote computer. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_COULD_NOT_CONNECT_TO_REMOTESVC. Error: The remote server returned an error: (550). Error count: 1

Given link suggest to do:

  • Ping the remote machine. *STATUS-OK
  • The msdepsvc or wmsvc service is started on the remote server. *STATUS-OK
  • Firewall is not blocking incoming connections of your ports on the destination. If it used the default installation, then it would be 80 for msdepsvc and 8172 for wmsvc. *STATUS-OK

Both of service are running at target server:

  • Web Management Services
  • Web Deployment Agent Service

What can do now to solve it?

2 Answers 2

24

If you have checked the basic stuff like

And have tried the steps mentioned here

And it still didn't work then may I suggest troubleshooting using Web Management Service Failed Request Tracing

4
  • 1
    Solved by following command…… Configure IIS Here ....AND... C:\Program Files\IIS\Microsoft Web Deploy V3> msdeploy.exe -verb:sync -source:package='E:\Test-MsDeploy\Package\TestProjectA.zip' -dest:auto,wmsvc='https://{IP}:8172/msdeploy.axd?site=Default%20Web%20Site',user‌​Name='******',password='******',includeAcls='False' -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParamFile="E:\Test-MsDeploy\Package\TestProjectA.SetParameters.xml" -allowUntrusted Mar 6, 2014 at 15:39
  • 18
    Incorrect website name bit me. Simple fix. Pain to track down.
    – Bob Banks
    Jul 2, 2014 at 21:31
  • 6
    Yup Error 550 means that the site name to which you are publishing to does not exist on the service. Create an empty site on the web server with the exact same name and then publish again. It will work Feb 22, 2015 at 12:06
  • Website name for me too. Name had changed from www.sitename.com to sitename.com in IIS. Had to remove www. in publish profile. Jul 31, 2019 at 21:15
15

This might be too late, but for others checking this error. Verify the Site name too. IE, Default Web Site/SiteDeploy (or whatever you call it)

k

1
  • this was it for me. not SERVER/site-name, just site-name Nov 7, 2016 at 6:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.