MS Web Deploy出现401错误

3
首先需要知道的是,上周三这个工作正常运行,但虚拟机已经回滚到上周一的状态。
我在两台计算机上安装了最新版本的MS Web Deploy。一台在我们的网络内部,另一台在DMZ(外部网络)中。内部计算机仍然可以正常使用,但DMZ中的服务器不允许我进行部署。
通常的操作是从VS 2010中使用Web发布,使用目标服务器的本地管理员用户名和密码,将内容发布到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天前),这是在我知道它能正常工作的最后一次。

2个回答

5

0
在我的情况下,我使用了userPWD,将其更改为Password,然后它就起作用了。我从事件查看器中得到了提示。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接