msdeploy


MSDeploy to IIS6 via wmsvc


I'm trying to deploy a website to an IIS6 box using msdeploy.exe. I can publish similar websites to the same server using Visual Studio 2010, so I know that the MS Deployment Agent Service is running and configured correctly. But when I try to run a command, like say:
msdeploy -verb:sync -source:contentPath=C:\source\ -dest:iisApp="beta",wmsvc=beta.alanta.com,username=Administrator,password=xxx
Then I get this error message:
Error: Could not complete the request to remote agent URL 'https://beta.alanta.com:8172/msdeploy.axd?Site=beta'.
Error: Unable to connect to the remote server
Error: No connection could be made because the target machine actively refused it 74.208.74.114:8172
Error count: 1.
OK, that makes sense: this is an IIS6 machine, and it takes a different URL syntax. But if I try the syntax that's recommended here, like so:
msdeploy -verb:sync -source:contentPath=C:\source\ -dest:iisapp="beta",wmsvc=http://beta.alanta.com/MsDeployAgentService,username=Administrator,password=xxxx
Then I get this error message:
Error: Could not complete the request to remote agent URL 'https://http//beta.alanta.com/MsDeployAgentService:8172/msdeploy.axd?Site=beta'.
Error: The remote name could not be resolved: 'http'
Error count: 1.
In other words, the msdeploy command wants to insist on throwing an SSL prefix in front of any URL that I put in there - but SSL isn't configured on this box. I've been googling for the last two hours, and can't figure out the right syntax. Any suggestions?
I had the same problem using msbuild command found on this blog:
http://www.troyhunt.com/2010/11/you-deploying-it-wrong-teamcity_24.html.
Finally, I found that changing the Publish Method to MsDepSVC solve this issue and worked properly.
here are my msbuild properties:
/P:Configuration=%env.Configuration%
/P:DeployOnBuild=True
/P:DeployTarget=MSDeployPublish
/P:MsDeployServiceUrl=https://%env.TargetServer%/MSDeployAgentService
/P:AllowUntrustedCertificate=True
/P:MSDeployPublishMethod=MsDepSVC
/P:CreatePackageOnPublish=True
/P:UserName=anAdminDeployBot
/P:Password=aGre4tP4ssw0r6

Related Links

Msdeploy 401 while trying to sync directories
Configuring MSDeploy 3.5 WS2008 R2
msdeploy and runCommand results in vague “Access is denied” error
WebDeploy - Not able to log on the user '.\WDeployConfigWriter'
MSDeploy: How to delete a single file on remote server
Remove Parameters from the generated setParameters.xml
Web Deploy parameterization of an XML config file where settings are embedded in CDATA elements
MsDeploy 3.5 automatic backup creates zip files lacking the Contents directory
msdeploy how to grant read/write permission for IIS_IUSRS to c:\windows\temp folder
MSDeploy skip root web.config
How can I skip deleting a folder but still sync the folder contents for an Web Deploy (msdeploy) sync?
How do I target an already existing application pool with webdeploy?
msdeploy and AppPool running under domain user
WebDeploy from TeamBuild fails with http 504
Webdeploy skip rule includes .css files as well as .cs
Using MSDeploy parameters to set the “additional provider settings” in a Web Deploy package

Categories

HOME
keyboard
focus
exchange-server
bots
subdomain
initialization
out-of-memory
biztalk
elisp
fogbugz
amp
elk-stack
azure-data-lake
wagtail
port
reportviewer
hystrix
lapack
smooks
jquery-select2-4
vertica
opam
anova
exchange-server-2010
environment
uri
background-color
pyspark-sql
opnet
sql-execution-plan
cloveretl
adminer
spinner
nsuserdefaults
installanywhere
iscroll
sbjson
windows-store
utf
data-uri
hdiv
distributed-caching
oracle-bmcs
common-table-expression
autorelease
tinyioc
roracle
sigsegv
htmlspecialchars
nslayoutconstraint
stateless-session-bean
wikimapia
dex
email-injection
allegro
ogg
ternary-operator
streamwriter
xmlbeans
wolfram-language
node.js-connect
mathnet
xcopy
polymerfire
juniper-network-connect
google-maps-api-2
arbre
directx-9
roxygen2
algebraixlib
innerhtml
baseadapter
producer
jquery-mobile-flipswitch
mobile-country-code
quantify
siena
android-2.3-gingerbread
prism.js
refit
bittorrent-sync
jacob
sunstudio
chartfx
delphi-xe4
linkbutton
system-requirements
semantic-merge
popup-blocker
image-formats
fbml
dynamic-c
differentiation
qtextbrowser
groovy-console
net-use
getopts
firefly-mv
regression-testing
pyjamas
iphone-sdk-4.3
.net-services
stretchblt
server-load
gui-designer

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App