.NET Core webapi 发布到IIS配置文件

 1.下载安装文件

vc_redist.x64

AspNetCore.2.0.6.RuntimePackageStore_x64

DotNetCore.2.0.5-WindowsHosting

dotnet-sdk-2.1.101-win-x64.exe

2.检查IIS是否包含AspNetCoreModule处理映射程序

3.重启服务器

4.发布网站 应用程序池设置为无托管代码

5.网站web.config配置如下节点

<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
</system.webServer>

原文地址:https://www.cnblogs.com/morpheusliu/p/8822588.html