我从BitBucket的Git存储库中克隆了c#api.net core 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:\inetpub\temp\IIS Temporary Compressed Files\MySolution AppPool is invalid.
Static compression is being disabled.
搜索有关如何“启用记录应用程序进程的标准输出消息”的说明
我看到了this advice on editing web.config
但是我的解决方案中没有web.config,只有appsettings.json
我看过this link on the Static Compression,但是我只是按F5键运行,所以为什么要调查IIS?
答案 0 :(得分:0)
问题是我的机器上安装了dot net core 2.1 sdk,而推送的机器上有2.1.2