HTTP错误502.5疑难解答-进程失败,AppPool无效



我从BitBucket中的Git存储库中克隆了一个c#api.net核心2.1解决方案。解决方案项目在推送到存储库的机器上运行良好。

我创建了wwwroot文件夹和logs文件夹,因为它们不见了。

当我运行解决方案时,我得到

HTTP Error 502.5 - Process Failure
Common causes of this issue:
The application process failed to start
The application process started but then stopped
The application process started but failed to listen on the configured port
Troubleshooting steps:
Check the system event log for error messages
Enable logging the application process’ stdout messages
Attach a debugger to the application process and inspect
For more information visit: https://go.microsoft.com/fwlink/?LinkID=808681

我查看了事件日志,看到

The directory specified for caching compressed content
C:inetpubtempIIS Temporary Compressed FilesMySolution AppPool is invalid.
Static compression is being disabled.

搜索有关如何"启用记录应用程序进程的stdout消息"的说明

我看到了关于编辑web.config 的建议

然而,我的解决方案中没有web.config,只有appsettings.json

我在静态压缩上看到了这个链接,但我只是按F5运行,所以我为什么要调查IIS?

问题是我的机器上安装了dot net core 2.1 sdk,因为推送的机器有2.1.2

最新更新