问题描述
我们有一个Web应用程序工作在企业内部网和我想要使用Visual Studio 2010的目标服务器正在运行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中我的服务网址是:
On Visual Studio 2010 my service URL is:
https://xxx.xxx.xxx.xxx:8172/MsDeploy.axd
和网站/应用程序是:
默认网站/ Web应用程序
作为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:
开始网络部署将应用程序发布/包 <一href="https://xxx.xxx.xxx.xxx:8172/MsDeploy.axd?site=Default%20Web%20Site">https://xxx.xxx.xxx.xxx:8172/MsDeploy.axd?site=Default%20Web%20Site ... C:\ PROGRAM 文件\的MSBuild \微软\ VisualStudio中\ 10.0 \网络\ Microsoft.Web.Publishing.targets(3588,5): 错误:Web部署任务失败(远程代理(网址 <一href="https://xxx.xxx.xxx.xxx:8172/MsDeploy.axd?site=Default">https://xxx.xxx.xxx.xxx:8172/MsDeploy.axd?site=Default网站)可能 不接触。确保已安装远程代理服务, 开始在目标计算机上。)
远程代理(网址 <一href="https://xxx.xxx.xxx.xxx:8172/MsDeploy.axd?site=Default">https://xxx.xxx.xxx.xxx:8172/MsDeploy.axd?site=Default网站)可能 不接触。确保已安装远程代理服务, 开始在目标计算机上。收到了不支持的响应。 响应头MSDeploy.Response'是',但'V1'预期。 远程服务器返回错误:(403)禁止
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,
单击服务器节点上,在连接列表中,
双击管理服务,那么你正在采取的其中有一个启用远程连接复选框的屏幕。
此复选框(和筛网的其余部分)可能显示为灰色,因为该服务正在运行。只需点击停止,在操作窗格中的链接,然后选中你想在这里改变,然后点击应用和开始的行为再次窗格的启用远程连接框和任何其他设置。
这应该希望让你从远程计算机连接,用正确的凭据,该服务。 (如果正确的端口和东西被打开,所有的爵士乐。)
我认为,这有助于你的情况。至少你不会得到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禁止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!