ASP.NET Core应用发布到IIS 

官网教程地址:https://docs.microsoft.com/zh-cn/aspnet/core/tutorials/publish-to-iis?view=aspnetcore-2.2&tabs=visual-studio

1、安装.net core托管捆绑包

https://dotnet.microsoft.com/download/dotnet-core/thank-you/runtime-aspnetcore-2.2.8-windows-hosting-bundle-installer

安装成功之后在IIS管理器模块中存在AspNetCoreModule模块

ASP.NET Core IIS发布

ASP.NET Core IIS发布

2、添加网站

创建站点:

ASP.NET Core IIS发布

设置应用程序池.NET CLR版本为无托管代码

ASP.NET Core IIS发布

3、vs2017发布网站

选择对应文件夹路径,发布网站,即可浏览网站

ASP.NET Core IIS发布

4、常见问题

浏览网站报错:HTTP 错误 500.19 - Internal Server Error

解决方法:在网站》》编辑权限》》安全 中添加 IIS_IUSRS 组,即可浏览网站

ASP.NET Core IIS发布

ASP.NET Core IIS发布

End!

相关文章:

  • 2021-07-29
  • 2022-12-23
  • 2021-12-10
  • 2022-02-25
  • 2021-12-20
猜你喜欢
  • 2021-06-13
  • 2021-12-06
  • 2021-07-10
  • 2021-12-07
  • 2021-09-03
  • 2021-05-23
相关资源
相似解决方案