你应该知道的第一件事是,这个工作在上周三进行,VM已经回滚到上周一。
我在两台机器上安装了最新版本的MS Web部署。一个在我们的网络内部,一个在DMZ(外部网络)。内部仍然很好,但DMZ中的服务器不允许我部署。
正常的过程是使用Web发布将VS 2010部署到http://SITENAME/MsDeployAgentService,并使用目标服务器的本地管理员的用户名和密码。现在,当我尝试它只挂了2分钟,说它无法连接到http://SITENAME/MsDeployAgentService。数据包嗅探器(wireshark)告诉我他们正在说话,但在验证之后他们说的是
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Server: Microsoft-HTTPAPI/2.0
MSDeploy.Response: v1
Date: Tue, 22 Mar 2011 22:46:33 GMT
B
...<results
B5
><trace eventLevel="Verbose" message="The HTTP connection (ID='5ccfecc6-0263-4e42-bc86-dbc4ee8df3d0', type ='GetTraceStatus') is being kept alive while the request is processed." />
B4
<trace eventLevel="Verbose" message="The HTTP connection (ID='5ccfecc6-0263-4e42-bc86-dbc4ee8df3d0', type ='GetTraceStatus') is being kept alive while the request is processed." />
A
</results>
0
所以我决定打包项目(我在服务器上尝试了多个项目,没有工作)并将其复制到服务器的c :.
PROJECTNAME.deploy.cmd /T
or
PROJECTNAME.deploy.cmd /T /m:http://localhost/MsDeployAgentService /u:USERNAME /p:Password
工作但是
PROJECTNAME.deploy.cmd /T /m:http://devel.sitename.com/MsDeployAgentService /u:USERNAME /p:Password
and
PROJECTNAME.deploy.cmd /T /m:http://localhost/MsDeployAgentService /u:USERNAME /p:Password /a:basic
不要。我得到的错误是
Error: Remote agent (URL http://localhost/MsDeployAgentService) could not be contacted. Make sure the remote agent service is installed and started on the target computer.
Error: An unsupported response was received. The response header 'MSDeploy.Response' was '' but 'v1' was expected.
Error: The remote server returned an error: (401) Unauthorized.
Error count: 1.
有关故障排除步骤的想法吗过去一周唯一改变的是,我们的网络有一种病毒关闭了公司,但它没有感染DMZ,我被告知没有规则在我们的防火墙上发生了变化。担心设置被更改是为什么VM被回滚到星期一(8天),就在我最后一次知道这个工作的前几天。
这听起来好像用户没有正确的IIS管理权限到站点和/或应用程序,或Windows管理服务运行的用户帐户(本地服务)没有文件系统权限到您所在的文件夹部署到。
以下是设置指南的一些链接。我确保配置实际上是正确的,并且端口8172在防火墙上是打开的(用于管理服务)。
在我的情况下,我使用userPWD
并将其更改为Password
并且它有效。我从事件查看器中得到了一个提示。