日期:2023-06-11  浏览次数:89 次

 

 缺少 AspNetCoreModuleV2 模块,下载安装即可。

ps:.net framework是可以直接发布,IIS指定就能正常访问的。但aspnetcore 项目略有不同,要额外安装一个模块,如果没有安装,会报HTTP 错误 500.19 - Internal Server Error的错。

1、官方版本地址:http://dotnet.microsoft.com/download/dotnet

 根据需求找到对的版本 6.0/7.0,点击下载安装即可。 如果是aspnetcore6.0,下载 dotnet-hosting-6.0.15-win.exeDownload ASP.NET Core 6.0 Runtime (v6.0.15) - Windows Hosting Bundle Installer,进行安装即可。

2、在iis的模块可就可看见AspNetCoreModuleV2

 3、重启IIS,大功告成,OK !