MsDeploy无法进行Web部署 [英] MsDeploy fails for webdeploy

查看:538
本文介绍了MsDeploy无法进行Web部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试网络部署.

因为我希望能够重现此内容,所以我使用了一个测试系统

Because I wanted to be able to reproduce this, i used a test system

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

Windows 2008 RC, IIs 7.5 + Deployment package I 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

我创建了一个新的WCF服务应用程序,(未进行任何更改)对其进行了编译并尝试进行部署

I created a new WCF Service Application, (changed nothing) compiled it and tried to deploy

我得到以下答复(几分钟后)

I get the following response(after a few min)

------ 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 ==========

并且在dev1服务器端完全没有日志.

and no logs (at all) on the dev1 server side.

我尝试了许多变体,但这是最简单,最容易复制的东西.而且失败了.

I have tried many variations, but this is the simplest, easiest thing to reproduce. and it is failing.

有什么想法吗?

推荐答案

我发现了问题.

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

instead of "http://" dev1:8172/msdeploy.axd I used dev1:8172/msdeploy.axd

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

this is actaully the same as "https://" dev1:8172/msdeploy.axd, which for some reason is where the deployment agent listens.

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

From here, you will get a new error:

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.

这是因为您没有SSL证书.

This is because you don't have a certificate for SSL.

在发布个人资料"窗口中,您需要检查 允许不受信任的证书"复选框

In the publish profile window, You need to check the "Allow untrusted certificate" checkbox

并且发布应该成功.祝你好运

and the publish should succceed. good luck

这篇关于MsDeploy无法进行Web部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆