I have been using the “Publish Web” dialog in VS2010 for over a year. In the “Service URL” section I have:
…and my deploys work no problem for ALL my apps.
Now I am trying to create a CI environment using Teamcity and ran into the problem where by my stated property:
/p:MsDeployServiceUrl="http://server.workapps.com"
…started erroring.
To debug I started using command line MSBuild.exe until I got the correct settings but again here MSBuild is translating my property:
“/p:MsDeployServiceUrl=”http://server.workapps.com”
…into a request that errors with:
"Remote agent (URL https://server.workapps.com:8172/msdeploy.axd?site=uat.workapps.com) could not be contacted.
FYI on the server Web Deploy is set to run on http:80 and I am trying to deploy a MVC Web Applciation (c#).
Can anyone tell me why it is not using the URL I gave and adding https and ports on?
Please see my parameters below:
/p:Configuration=Debug
/p:DeployOnBuild=True
/p:DeployTarget=MSDeployPublish
/p:MsDeployServiceUrl="http://server.workapps.com"
/p:username=Administrator
/p:password=NotOriginalPassword
/p:AllowUntrustedCertificate=True
/P:CreatePackageOnPublish=True
/p:DeployIisAppPath=uat.workapps.com
/p:MSDeployPublishMethod=WMSVC
Thanks Paul
It would appear I need to use the following:
as opposed to WMSVC.