1.下载 .net core runtime 和 hosting bundle
下载地址:
分别下载 runtime for windows x64(x86) 和 hosting bundle,并安装。
2. 在 iis 中查看 hosting bundle 是否安装成功
检查 iis “模块” 中是否有 “aspnetcoremodule”
3. 应用程序池设置
将 .net clr 版本设置为:无托管代码
将托管管道模式设置为:经典
4. 网站设置
将网站的应用程序池设置为 “ 无托管代码(.net clr 版本)” 的应用程序池
将网站的物理路径指向 asp.net 应用程序的根目录
5. 应用程序文件夹权限设置
将 asp.net core 应用程序文件夹权限设置为:users 完全控制
黄山市民网:https://www.huangshanshimin.com/