错误信息:
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
查看windows事件日志错误显示:
Application 'MACHINE/WEBROOT/APPHOST/FORM' with physical root 'C:\fabu' failed to start process with commandline 'dotnet .\Cloud.Boss.dll', ErrorCode = '0x80004005 : c0000135.
在 web.config 中将 stdoutLogEnabled
设置为 true
,然后看一下 logs\stdout
中是否有错误日志
没有生成logs\stdout文件夹,也没有日志输出
@梦亦晓: 建议看一下 IIS 应用程序池的权限设置,参考 https://github.com/aspnet/IISIntegration/issues/623
@dudu: 我用的是.net core 2.0,服务器上还需要装对应的.net core sdk吗
@梦亦晓: 需要安装
@dudu: 该装的都装了就是跑不起来,简直怀疑人生
@梦亦晓: 自己在命令行行中用 dotnet
命令能运行吗?
@梦亦晓: 建议安装一下最新版 ASP.NET Core/.NET Core: Runtime & Hosting Bundle
@dudu: 问题已解决,是因为没有安装Visual C++ Redistributable for Visual Studio 2015 组件
解决历程已记录:https://www.cnblogs.com/eggTwo/p/9900613.html
安装运行时就可以了, .net core runntime