admin 发表于 2024-1-5 14:33:21

HTTP Error 500.30 - ASP.NET Core app failed to start

HTTP Error 500.30 - ASP.NET Core app failed to start
Common solutions to this issue:
The app failed to start
The app started but then stopped
The app started but threw an exception during startup
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 guidance on diagnosing and handling these errors, visit Troubleshoot ASP.NET Core on Azure App Service and IIS.

出错的原因:在于VS Studio中开发时使用的是IIS Express,当发布后,一般为IIS。
所以存在一些问题:
1、NET8的SDK是否安装,版本确保一致。
2、NET8的HOSTING工具是否正确安装,确保版本一致。
3、Web.config的设置修改,如下:
找到hostingModel="inprocess",改成hostingModel="OutOfProcess"
此故障在Hondy.Chat发布至服务器发生并解决。
页: [1]
查看完整版本: HTTP Error 500.30 - ASP.NET Core app failed to start