gpt4 book ai didi

.net - MsDeploy 返回 403 禁止

转载 作者:行者123 更新时间:2023-12-03 05:00:18 26 4
gpt4 key购买 nike

我们有一个在 Intranet 上运行的 Web 应用程序,我正在尝试使用 Visual Studio 2010 将其发布到 Internet。目标服务器正在运行 iis7 并且 Web 管理服务正在运行。

在 Visual Studio 2010 上,我的服务 URL 是:

https://xxx.xxx.xxx.xxx:8172/MsDeploy.axd

站点/应用程序是:

Default Web Site/WebApp

已选中“在目标上标记为 IIS 应用程序”和“允许不受信任的证书”,并且我正在使用管理帐户。

Visual Studio 返回以下错误:

Start Web Deploy Publish the Application/package to https://xxx.xxx.xxx.xxx:8172/MsDeploy.axd?site=Default%20Web%20Site ... C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(3588,5): Error : Web deployment task failed.(Remote agent (URL https://xxx.xxx.xxx.xxx:8172/MsDeploy.axd?site=Default Web Site) could not be contacted. Make sure the remote agent service is installed and started on the target computer.)

Remote agent (URL https://xxx.xxx.xxx.xxx:8172/MsDeploy.axd?site=Default Web Site) could not be contacted. Make sure the remote agent service is installed and started on the target computer. An unsupported response was received. The response header 'MSDeploy.Response' was '' but 'v1' was expected. The remote server returned an error: (403) Forbidden.

有什么想法如何在没有有效 SSL 证书的情况下发布它吗?

最佳答案

如果您进入 IIS,
单击“连接”列表中的服务器节点,
双击“管理服务”,然后您将进入一个带有“启用远程连接”复选框的屏幕。
由于服务正在运行,此复选框(以及屏幕的其余部分)可能会变灰。只需单击“操作” Pane 中的“停止”链接,然后选中“启用远程连接”框以及您要在此处更改的任何其他设置,然后再次单击“操作” Pane 中的“应用”和“启动”即可。

这应该可以让您使用正确的凭据从远程计算机连接到该服务。 (如果打开了正确的端口和内容以及所有这些爵士乐。)

我认为这对你的情况有帮助。至少您不会收到 403 错误,但可能会遇到其他一些 MsDeploy 错误。

关于.net - MsDeploy 返回 403 禁止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8325259/

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