更新时间:2023-02-16 13:40:31
默认情况下,ASP.NET Core 2.2 应用配置为使用新的进程内托管模型.直到 2018 年 12 月的某个时候,所有地区的 Azure 才会提供此功能.他们提到了 这里.
By default ASP.NET Core 2.2 apps are configured to use the new In Process hosting model. This will not be available on Azure in all regions until sometime in December 2018. They mention it here.
目前的解决方案是在 Web 应用的 .csproj 文件顶部添加以下内容:
The solution for now is to add the following at the top of your web app's .csproj file:
<PropertyGroup>
<AspNetCoreModuleName>AspNetCoreModule</AspNetCoreModuleName>
<AspNetCoreHostingModel>OutOfProcess</AspNetCoreHostingModel>
</PropertyGroup>