(三) .net core 项目发布
1.IIS配置-校验ASPNetCoreMoudle模块是否存在,不存在需要安装DotNetCore.2.0.4-WindowsHosting.exe 点击打开链接
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.设置应用池为无托管代码
5.访问成功
6.win10 cmd可能出现拒绝访问错误,因为没有用管理员身份打开cmd,win+x,A 或者,开始菜单邮件,windows powershell(管理员)(A)再次执行