msdeploy (sync)

Discussion in 'Windows / IIS' started by lufe, Sep 16, 2011.

  1. hi folk!

    I've got a question syncing my discountasp hosting with my local iis webserver. the deployment local iis -> discountasp was successful with the following command:

    Code:
    msdeploy.exe -verb:sync -source:iisApp=mydomain.com -dest:iisApp=mydomain.com,computerName=https://webxxx.discountasp.net:8172/msdeploy.axd?site=mydomain.com,userName=cpUsername,password=cpPassword,authtype=basic -allowUntrusted
    
    as said, this was successful! now my question: i'd like to 'sync back' the website/application from discountasp to my local iis webserver. the first try was just to change source and destination but then i get the error:

    Error: Object of type 'iisApp' and path 'mydomain.com' cannot be created.
    Error: (16.09.2011 11:34:59) An error occurred when the request was processed on the remote computer.
    Error: The server experienced an issue processing the request. Contact the server administrator for more information.
    Error count: 1.

    have you any idea how i can fix this, to sync my webs between this two destination, anytime, in any direction :)

    thank you!
    luca
     
  2. Sorry Luca, I do not think this is possible on a shared hosting environment. If you have Visual Studio, you may want to use the Copy Website feature to synch your web pages from the web server to your local computer.
     
  3. MSDeploy Authorization

    I am trying to publish my site through MSDeploy using the command line so that I can have continuous deployment. I have tried MSDeploy and that hung for a while and failed. I am now trying Microsoft Web Deploy V3 and it seems that it's issuing me a connection but it is saying I'm unauthorized. I have been able to publish through Visual Studio to confirm it works that way but I have no interest in deploying manually in this context.

    Here is the command line I am using to try to deploy my package:

    Code:
     ".\thirdparty\tools\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:package="D:\rmw\src\buildartifacts\packa
     ge\RMW.zip" -dest:iisApp=,computerName=https://webXXX.discountasp.net:8172/MsDeploy.axd?site=SITENAME.com,
     username=CPUSERNAME,password=CPPASSWORD,authtype=Basic -allowUntrusted

    It then returns this:

    Info: Using ID 'b1caa143-22ea-48b6-8ba4-454e6b0443b7' for connections to the remote server.

    And then:

    EXEC : error Code: ERROR_USER_UNAUTHORIZED [D:\rmw\src\rmw.build]
    More Information: Connected to the remote computer ("webXXX.discountasp.net") using the Web Management Service, but c
    ould not authorize. Make sure that you are using the correct user name and password, that the site you are connecting
    to exists, and that the credentials represent a user who has permissions to access the site. Learn more at: http://
    go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_UNAUTHORIZED.
    Error : The remote server returned an error : (401) Unauthorized. [D:\rmw\src\rmw.build]
    EXEC : error count: 1. [D:\rmw\src\rmw.build]


    The link that it show:

    http://www.iis.net/learn/publish/tr...eb-deploy-error-codes#ERROR_USER_UNAUTHORIZED

    Seems to imply I don't have permission but I can do this in Visual Studio so I don't see what the problem is. Please assist in allowing me to deploy my site package to my account through MS Deploy using the command line.
     

Share This Page