gpt4 book ai didi

visual-studio-2010 - 401 在 MS Web 部署上

转载 作者:行者123 更新时间:2023-12-01 11:57:39 25 4
gpt4 key购买 nike

您应该知道的第一件事是,这在上周的星期三有效,并且 VM 已回滚到上周的星期一。

我在两台机器上安装了最新版本的 MS Web 部署设置。一个在我们的网络内部,一个在 DMZ(外部网络)中。内部服务器仍然运行良好,但 DMZ 中的服务器不允许我部署。

正常程序是使用网络发布从 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 在防火墙上打开(用于管理服务)。

关于visual-studio-2010 - 401 在 MS Web 部署上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5399490/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com