gpt4 book ai didi

azure - 在应用服务环境中安装 ASP.NET CORE 3.0 扩展?

转载 作者:行者123 更新时间:2023-12-03 00:48:20 25 4
gpt4 key购买 nike

尝试在我的应用服务环境 (ASE) 中为我的应用服务安装 .NET CORE 3.0 扩展:

使用门户:

 A

我明白了

enter image description here

但是扩展程序未安装!

如何让它发挥作用?

请注意:Azure 应用服务在应用服务环境中运行

最佳答案

为确保扩展已安装,请在 Kudu 中检查 D:\home\SiteExtensions\AspNetCoreRuntime.3.0.x64 中的目录。

enter image description here

确认后,您可以编辑 web.config 以指向网站扩展,如下所示作为解决方法

<aspNetCore processPath="D:\home\SiteExtensions\AspNetCoreRuntime.3.0.x86\dotnet" arguments=".\<project output>.dll" stdoutLogEnabled="true" stdoutLogFile="\\?\%home%\LogFiles\stdout" hostingModel="inprocess" />

参见https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-3.0#webconfig-file了解更多信息。

看来这应该由扩展本身处理,因此那里可能存在问题。尽管如此,.NET Core 3 应该会在下周左右作为可用的运行时进行部署。

编辑:

您在 Azure Pipelines 中添加“使用 .NET Core”任务 enter image description here安装3.0 SDK。这与 --self-contained true --runtime <RID> 结合使用在发布任务和 <AspNetCoreHostingModel>OutOfProcess</AspNetCoreHostingModel>在您的 csproj 中是使用扩展的替代方法。

关于azure - 在应用服务环境中安装 ASP.NET CORE 3.0 扩展?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58166974/

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