【发布时间】:2020-03-26 13:20:18
【问题描述】:
有人可以帮助我如何在 Azure 上的 windows server core 2019 上部署为 anp.net web api core 3.1。
我已经尝试关注the link
我遇到了错误
******* CommandLine: ********** MSI (c) (E4:AC) [12:38:27:612]: Client-side and UI is none or basic: Running entire
install on the server. MSI (c) (E4:AC) [12:38:27:612]: Grabbed
execution mutex. MSI (c) (E4:AC) [12:38:27:644]: Failed to connect to
server. Error: 0x8007041D
MSI (c) (E4:AC) [12:38:27:644]: Note: 1: 2774 2: 0x8007041D 1: 2774 2:
0x8007041D MSI (c) (E4:AC) [12:38:27:644]: Failed to connect to
server. MSI (c) (E4:AC) [12:38:27:644]: MainEngineThread is returning
1601
=== Verbose logging stopped: 3/26/2020 12:38:27 ===
我尝试过从 powershell 安装。以下是我遇到的错误消息。
有人可以帮助我如何在 Windows 核心机器上的 IIS 中部署我的应用程序。
Enable-WindowsOptionalFeature-Online -FeatureName IIS-DefaultDocument -All Enable-WindowsOptionalFeature-Online:术语“Enable-WindowsOptionalFeature-Online”未被识别为名称 cmdlet、函数、脚本文件或可运行程序的名称。检查 名称的拼写,或者如果包含路径,请验证路径 是正确的,然后再试一次。在行:1 字符:2 + Enable-WindowsOptionalFeature-Online -FeatureName IIS-DefaultDocumen ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Enable-WindowsOptionalFeature-Online:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
谢谢
【问题讨论】:
-
那篇文章使用 Windows Server 2016 Datacenter,所以您也应该这样做。大量 MSI 安装程序不支持 Windows Server。
-
你可以试试我的方法来解决这个问题,我会看到你给出的链接并试着弄清楚。
-
您创建了哪个版本的 server 2019 ?我在门户中找到了很多资源,我不知道如何选择。
-
@Jason windows server core 2019
-
你在asp.net核心应用中使用了哪种部署模式?自包含还是依赖框架?您是否添加了 azure VM 以打开正确的端口以允许网络?
标签: asp.net-core iis azure-web-app-service