1.IIS配置-校验ASPNetCoreMoudle模块是否存在,不存在需要安装DotNetCore.2.0.4-WindowsHosting.exe 点击打开链接

(三) .net core 项目发布

2.重启服务器!!!或者执行命令 net stop was /y 然后执行 net start w3svc,否则会报错

502.3 Bad Gateway - There was a connection error while trying to route the request

3.新建项目发布就不说了,都是一样的

4.设置应用池为无托管代码

(三) .net core 项目发布

5.访问成功

6.win10 cmd可能出现拒绝访问错误,因为没有用管理员身份打开cmd,win+x,A 或者,开始菜单邮件,windows powershell(管理员)(A)再次执行

(三) .net core 项目发布

相关文章:

  • 2022-01-08
  • 2021-06-10
  • 2022-12-23
  • 2022-12-23
  • 2022-02-18
  • 2021-11-15
  • 2021-06-06
猜你喜欢
  • 2021-10-18
  • 2021-09-05
  • 2021-07-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案