gpt4 book ai didi

asp.net - 无法获取我的EC2 Windows Server 2008(Web堆栈)实例来接收我的网站的发布

转载 作者:行者123 更新时间:2023-12-03 13:19:03 30 4
gpt4 key购买 nike

我为EC2(http://aws.amazon.com/amis/Microsoft/5147732567196848)安装了新的AMI,并在其上安装了Web deploy 2.1。

Web deploy 2.1服务实际运行为

netstat -an


显示Web部署代理服务正在侦听8172。

但是,当我尝试使用Project->右键单击-> Publish(通过Web部署)部署到此站点时,收到以下错误消息

------ Build started: Project: Cir.Web, Configuration: Debug Any CPU ------
Cir.Web -> C:\Projects\CrazyInsaneRobot\Source\Cir.Web\bin\Cir.Web.dll
------ Publish started: Project: Cir.Web, Configuration: Debug Any CPU ------
Transformed Web.config using Web.Debug.config into obj\Debug\TransformWebConfig\transformed\Web.config.
Auto ConnectionString Transformed Views\Web.config into obj\Debug\CSAutoParameterize\transformed\Views\Web.config.
Auto ConnectionString Transformed obj\Debug\TransformWebConfig\transformed\Web.config into obj\Debug\CSAutoParameterize\transformed\Web.config.
Copying all files to temporary location below for package/publish:
obj\Debug\Package\PackageTmp.
Start Web Deploy Publish the Application/package to https://ec2-175-41-170-198.ap-southeast-1.compute.amazonaws.com:8172/msdeploy.axd?site=Default%20Web%20Site ...
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(3847,5): Warning : Retrying the sync because a socket error (10054) occurred.
Retrying operation 'Serialization' on object sitemanifest (sourcePath). Attempt 1 of 10.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(3847,5): Warning : Retrying the sync because a socket error (10054) occurred.
Retrying operation 'Serialization' on object sitemanifest (sourcePath). Attempt 2 of

...
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(3847,5): Warning : Retrying the sync because a socket error (10054) occurred.
Retrying operation 'Serialization' on object sitemanifest (sourcePath). Attempt 10 of 10.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(3847,5): Error : Web deployment task failed.(Could not complete the request to remote agent URL 'https://ec2-175-41-170-198.ap-southeast-1.compute.amazonaws.com:8172/msdeploy.axd?site=Default Web Site'.)
This error indicates that you cannot connect to the server. Make sure the service URL is correct, firewall and network settings on this computer and on the server computer are configured properly, and the appropriate services have been started on the server.
Error details:
Could not complete the request to remote agent URL 'https://ec2-175-41-170-198.ap-southeast-1.compute.amazonaws.com:8172/msdeploy.axd?site=Default Web Site'.
The underlying connection was closed: An unexpected error occurred on a send.
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
An existing connection was forcibly closed by the remote host
Publish failed to deploy.
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========


我在EC2实例上的防火墙已关闭。我的AWS防火墙设置是



这是推荐设置。

其他注意事项/想法:


Windows错误日志中的“我的Web部署错误”日志完全为空
过去,在使用其他AMI之前,我曾使用过Web部署,并且成功了,没有出现问题。


如果有人对调试方法有任何建议,我将非常感激!

最佳答案

我直接就此问题与Microsoft联系,他们为我提供了立即答复。

来自MS家伙:

您的Web管理服务似乎无法联系。在该服务的证书无效时,我已经看到了这一点。您可以在服务器上运行附件脚本吗?


启动提升的PowerShell提示
运行set-executionpolicy unrestricted –force
运行。\ 00_Certificate.ps1
净停止wmsvc
净启动wmsvc


这样可以解决问题吗?



他指的脚本是available here

关于asp.net - 无法获取我的EC2 Windows Server 2008(Web堆栈)实例来接收我的网站的发布,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5841370/

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