An error occurred while starting the application.

An error occurred while starting the application.
.NET Core 4.6.26614.01 X64 v4.0.0.0 | Microsoft.AspNetCore.Hosting version 2.0.1-rtm-125 | Microsoft Windows 10.0.18363
An error occurred while starting the application._第1张图片
IIS net core 2.0
出现上面的问题是配置端口是:90

找了很多办法都没用,如下

  • 改配置文件
    An error occurred while starting the application._第2张图片
    没有任何效果
  • 安装net core2.0需要的环境(当前代码发布的是独立的)
    也是没有任何效果

最后想到可能是端口的端口的问题就重新改成了8090 发现好使了

你可能感兴趣的:(asp.net,core,iis)