可以参见博客https://blog.csdn.net/feigning/article/details/91345140的方法,用dism工具注册下

控制台会提示此操作系统不支持此选项,可以使用dism.exe命令行工具安装.net 4.5 

那么我们使用dism工具执行以下指令即可:

dism /online /enable-feature /featurename:IIS-ISAPIFilter
dism /online /enable-feature /featurename:IIS-ISAPIExtensions
dism /online /enable-feature /featurename:IIS-NetFxExtensibility45
dism /online /enable-feature /featurename:IIS-ASPNET45
————————————————
此时部署webapi网站,还是无法访问

接着重新通过控制面板选择安装iis,把该装的都装了,最后就好了

相关文章:

  • 2022-12-23
  • 2021-12-27
  • 2022-12-23
  • 2022-03-06
  • 2021-12-17
  • 2021-04-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-28
  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2022-12-23
相关资源
相似解决方案