您应该知道的第一件事是,这个工作在上周三,VM已经回滚到上周一的星期一。MS网络上的401部署
我在两台机器上安装了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,我被告知没有任何规则在我们的防火墙上发生变化。担心设置发生变化的原因是为什么虚拟机恢复到星期一(8天),这是在我知道最后一次工作的前几天。