2 回答

TA貢獻1757條經(jīng)驗 獲得超8個贊
您的本地 IIS 無法正常工作,因為您需要安裝一個單獨的組件,稱為 HttpPlatformHandler 模塊,
http://www.iis.net/downloads/microsoft/httpplatformhandler
反向代理或 FastCGI 是舊方法,這種新方法不再需要。

TA貢獻1827條經(jīng)驗 獲得超9個贊
HttpPlatformHandler 模塊對我不起作用。我發(fā)現(xiàn)Sutean Rutjanalard 在 Medium 上的這篇文章非常有幫助,它使用 ASP.NET Core 模塊代替。
基本上,您需要像使用 .net 核心應(yīng)用程序一樣使用“無托管代碼”創(chuàng)建應(yīng)用程序池。以下是 web.config。
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath=".\YourGoApp.exe" />
</system.webServer>
</configuration>
- 2 回答
- 0 關(guān)注
- 256 瀏覽
添加回答
舉報