« Previous Next »

Thread: msdeploy cannot find drive on destination server.

Last post 11-04-2009 11:46 AM by krolson. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 11-04-2009, 8:50 AM

    msdeploy cannot find drive on destination server.

    Trying to push sync content from my source IIS7 box (\\samos) to my destination IIS7 box (\\kimi). Getting an error that the drive cannot be found on the destination.

     I installed manager on my source box (\\samos), and the agent on the destination (\\kimi). Started the agent. On the source I ran : msdeploy -verb:sync -source:apphostconfig="Default Web Site" -dest:apphostconfig="Default Web Site",computername=Kimi –verbose -whatif > msdeploysync.log This generated an error: Error: (11/4/2009 5:32:21 AM) An error occurred when the request was processed on the remote computer. Error: Could not find the drive 'I:\'. The drive might not be ready or might not  be mapped.Error count: 1.

     

    The source computer indeed has the website installed on drive I:, whereas the destination only has a drive C:. I can’t believe that the tool requires the same physical configuration on all destinations, as this would be pretty rare in production web farms, so I must be doing something wrong. Can you suggest what?

  • 11-04-2009, 11:46 AM In reply to

    • krolson
    • Top 75 Contributor
    • Joined on 10-06-2008, 10:32 PM
    • Posts 101

    Re: msdeploy cannot find drive on destination server.

    By default the sync attempts to copy content to the same location and doesn't arbitrarily choose a new location if it can't use the same path.  You can, however, use a replace rule to change the drive letter when you perform the sync. There's more information about using "replace" here:

    http://technet.microsoft.com/en-us/library/dd569089(WS.10).aspx

    But the short of it is, you could add something like:

    msdeploy -verb:sync -source:apphostconfig="Default Web Site" -dest:apphostconfig="Default Web Site",computername=Kimi -replace:objectName="metaProperty",scopeAttributeName="name",scopeAttributeValue="Path",targetAttributeName="value",match="I:",replace="C:" –verbose -whatif > msdeploysync.log -whatif

    (The -whatif is just to make sure this will do what you expect before you actually perform the sync)

Page 1 of 1 (2 items)
Microsoft Communities