1. 程式人生 > >.NET Core webapi 發布到IIS配置文件

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

1.0 節點 -s sys 文件 type iis core eba

1.下載安裝文件

DotNetCore.1.0.0-WindowsHosting.exe

dotnet-sdk-2.1.101-win-x64.exe

2.檢查IIS是否包含AspNetCoreModule處理映射程序

3.發布網站

4.網站web.config配置如下節點

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

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