visual studio 2010 - MsDeploy fails for webdeploy -
i trying web-deploy.
because wanted able reproduce this, used test system
windows 2008 rc, iis 7.5 + deployment package configured deployment using http://learn.iis.net/page.aspx/516/configure-the-web-deployment-handler/ enabled tracing http://technet.microsoft.com/en-us/library/ff729439(v=ws.10).aspx
i created new wcf service application, (changed nothing) compiled , tried deploy
i following response(after few min)
------ build started: project: wcfservice1, configuration: debug cpu ------ wcfservice1 -> c:\development\brandshield\services\wcfservice1\bin\wcfservice1.dll ------ publish started: project: wcfservice1, configuration: debug cpu ------ transformed web.config using web.debug.config obj\debug\transformwebconfig\transformed\web.config. auto connectionstring transformed obj\debug\transformwebconfig\transformed\web.config obj\debug\csautoparameterize\transformed\web.config. copying files temporary location below package/publish: obj\debug\package\packagetmp. start web deploy publish application/package http://dev1:8172/msdeploy.axd/msdeployagentservice ... c:\program files (x86)\msbuild\microsoft\visualstudio\v10.0\web\microsoft.web.publishing.targets(3847,5): error : web deployment task failed.(could not complete request remote agent url 'http://dev1:8172/msdeploy.axd/msdeployagentservice'.) error indicates cannot connect server. make sure service url correct, firewall , network settings on computer , on server computer configured properly, , appropriate services have been started on server. error details: not complete request remote agent url 'http://dev1:8172/msdeploy.axd/msdeployagentservice'. underlying connection closed: unexpected error occurred on receive. unable read data transport connection: existing connection forcibly closed remote host. existing connection forcibly closed remote host publish failed deploy. ========== build: 1 succeeded or up-to-date, 0 failed, 0 skipped ========== ========== publish: 0 succeeded, 1 failed, 0 skipped ========== and no logs (at all) on dev1 server side.
i have tried many variations, simplest, easiest thing reproduce. , failing.
any ideas?
i found issue.
instead of "http://" dev1:8172/msdeploy.axd used dev1:8172/msdeploy.axd
this actaully same "https://" dev1:8172/msdeploy.axd, reason deployment agent listens.
from here, new error:
could not complete request remote agent url 'https://dev1:8172/msdeploy.axd?site=default web site'. underlying connection closed: not establish trust relationship ssl/tls secure channel. remote certificate invalid according validation procedure. this because don't have certificate ssl.
in publish profile window, need check "allow untrusted certificate" checkbox
and publish should succceed. luck
Comments
Post a Comment