MsDeploy无法进行webdeploy

Mic*_*ein 7 visual-studio-2010 iis-7.5 webdeploy

我正在尝试网络部署.

因为我希望能够重现这一点,所以我使用了测试系统

Windows 2008 RC,IIs 7.5 +部署包我使用http://learn.iis.net/page.aspx/516/configure-the-web-deployment-handler/ 启用了跟踪 来配置部署 http://technet.microsoft.com /en-us/library/ff729439(v=ws.10).aspx

我创建了一个新的WCF服务应用程序,(没有改变)编译它并尝试部署

我收到以下回复(几分钟后)

------ Build started: Project: WcfService1, Configuration: Debug Any CPU ------
  WcfService1 -> C:\Development\BrandShield\Services\WcfService1\bin\WcfService1.dll
------ Publish started: Project: WcfService1, Configuration: Debug Any CPU ------
Transformed Web.config using Web.Debug.config into obj\Debug\TransformWebConfig\transformed\Web.config.
Auto ConnectionString Transformed obj\Debug\TransformWebConfig\transformed\Web.config into obj\Debug\CSAutoParameterize\transformed\Web.config.
Copying all files to temporary location below for package/publish:
obj\Debug\Package\PackageTmp.
Start Web Deploy Publish the Application/package to 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 the request to remote agent URL 'http://dev1:8172/msdeploy.axd/MSDEPLOYAGENTSERVICE'.)
This error indicates that you cannot connect to the server. Make sure the service URL is correct, firewall and network settings on this computer and on the server computer are configured properly, and the appropriate services have been started on the server.
Error details:
Could not complete the request to remote agent URL 'http://dev1:8172/msdeploy.axd/MSDEPLOYAGENTSERVICE'.
The underlying connection was closed: An unexpected error occurred on a receive.
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
An existing connection was forcibly closed by the remote host
Publish failed to deploy.
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========
Run Code Online (Sandbox Code Playgroud)

dev1服务器端没有日志(根本没有).

我尝试了很多变化,但这是最简单,最简单的重现.它失败了.

有任何想法吗?

Mic*_*ein 9

我发现了这个问题.

而不是"http://"dev1:8172/msdeploy.axd我使用了dev1:8172/msdeploy.axd

这实际上与"https://"dev1:8172/msdeploy.axd相同,由于某种原因,它是部署代理侦听的地方.

从这里,您将收到一个新错误:

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.
Run Code Online (Sandbox Code Playgroud)

这是因为您没有SSL证书.

在发布配置文件窗口中,您需要选中"允许不受信任的证书"复选框

并且应该发布出版物.祝好运