Tuesday, June 05, 2012

Publish and deploy

For those still looking, I had to make sure to:

  • Specify port 8172, use the default service name (msdeploy.axd), use https and check the box to allow untrusted certificates in the publish service url from Visual Studio:https://serveraddress:8172/msdeploy.axd

Also, I found this IIS article to be extremely helpful for setting up the service.

Pasted from <http://stackoverflow.com/questions/5490478/vs-2010-publish-using-web-deploy>

http://www.microsoftpdc.com/2009/FT56?type=wmvhigh

http://learn.iis.net/page.aspx/516/configure-the-web-deployment-handler/

When faced with :

Web deployment task failed.(Could not complete the request to remote agent URL 'https://dev1:8172/msdeploy.axd?site=Default web site'.)

Could not complete the request to remote agent URL 'https://dev1:8172/msdeploy.axd?site=Default web site'.

The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.The remote certificate is invalid according to the validation procedure.

clip_image001

The Service URL without the http:// defaults to https://

BUT, because Https means Secure, we need a certificate.

However the IIS is not configured with a certificate, so it fails

You need to check the
"Allow untrusted certificate" checkbox

No comments: