MsDeploy 正在返回 403 禁止 [英] MsDeploy is returning 403 forbidden

查看:21
本文介绍了MsDeploy 正在返回 403 禁止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

We had a Web Application working on an intranet and I'm trying to publish it to the internet using Visual Studio 2010. The destination server is running iis7 and the Web Management Service is running.

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

On Visual Studio 2010 my service URL is:

https://xxx.xxx.xxx.xxx:8172/MsDeploy.axdp>

站点/应用程序是:

默认网站/WebApp

Default Web Site/WebApp

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

Marking as IIS App on destination and Allow untrusted certificate is checked and i'm using an administration account.

Visual Studio 返回以下错误:

Visual Studio return the following error:

开始 Web 部署 将应用程序/包发布到https://xxx.xxx.xxx.xxx:8172/MsDeploy.axd?站点=默认%20Web%20Site ...C:程序文件MSBuildMicrosoftVisualStudiov10.0WebMicrosoft.Web.Publishing.targets(3588,5):错误:Web 部署任务失败.(远程代理(URLhttps://xxx.xxx.xxx.xxx:8172/MsDeploy.axd?site=Default 网站)可以不被联系.确保远程代理服务已安装并且在目标计算机上启动.)

Start Web Deploy Publish the Application/package to https://xxx.xxx.xxx.xxx:8172/MsDeploy.axd?site=Default%20Web%20Site ... C:Program FilesMSBuildMicrosoftVisualStudiov10.0WebMicrosoft.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.)

远程代理(网址https://xxx.xxx.xxx.xxx:8172/MsDeploy.axd?site=Default 网站)可以不被联系.确保远程代理服务已安装并且在目标计算机上启动.收到了不受支持的响应.响应标头MSDeploy.Response"为",但应为v1".远程服务器返回错误:(403) Forbidden.

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 证书的情况下发布它?

Any ideas how to publish it without a valid SSL certificate?

推荐答案

如果你进入IIS,
点击Connections"列表中的服务器节点,
双击管理服务",然后您将进入具有启用远程连接"复选框的屏幕.
由于服务正在运行,此复选框(以及屏幕的其余部分)可能会显示为灰色.只需单击操作"窗格中的停止"链接,然后选中启用远程连接"框和您要在此处更改的任何其他设置,然后再次单击操作"窗格上的应用"和开始".

希望这可以让您使用适当的凭据从远程计算机连接到服务.(如果正确的端口和东西被打开了所有的爵士乐.)

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

If you go into IIS,
Click on the server node in the "Connections" list,
Double click "Management Service" then you are taken to a screen which has an "Enable remote connections" check box.
This checkbox (and the rest of the sreen) maybe greyed out because the service is running. Just click the "Stop" link in the Actions pane, then check the "Enable remote connections" box and any other settings you want to change here, then click 'Apply' and 'Start' on the Actions pane again.

That should hopefully let you connect, with proper credentials, to the service from a remote machine. (If the correct ports and stuff are opened and all that jazz.)

I think this helps your situation. At least you won't get 403's but you may have some other MsDeploy error.

这篇关于MsDeploy 正在返回 403 禁止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆