views:

94

answers:

0

I'm successfully using Visual Studio 2010's Publish wizard to publish to a remote site. However when I try to do the same thing over the command line I keep getting the error: Could not complete the request to remote agent URL 'http://example.com:8172/MSDeploy.axd.

I'm sure I'm just missing a flag somewhere.. Here are the settings that are stored in my publish.xml file:

    <?xml version="1.0" encoding="utf-8"?>
<publishData>
  <publishProfile publishUrl="example.com" deleteExistingFiles="False" ftpAnonymousLogin="False" ftpPassiveMode="True" msdeploySite="mysitename" msdeploySiteID="" msdeployRemoteSitePhysicalPath="" msdeployAllowUntrustedCertificate="True" msdeploySkipExtraFilesOnServer="True" msdeployMarkAsApp="False" profileName="Profile1" publishMethod="MSDeploy" replaceMatchingFiles="True" userName="test" savePWD="False" userPWD="" SelectedForPublish="True" />
</publishData>

And here is what I have so far for the command line:

mysitename.deploy.cmd /T /M:http://example.com:8172/MSDeploy.axd -AllowUntrusted /U:test /P:password /A:Basic

One thing I've noticed is that I don't specify the msdeploySite in my command line arguments. Anyone know how I set this and/or see any other flags I'm missing?