赞
踩
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 information visit: https://go.microsoft.com/fwlink/?LinkID=2028265
[FTL] IdentityService.Host terminated unexpectedly!
System.InvalidOperationException: Could not find singleton service: Volo.Abp.Modularity.IModuleContainer, Volo.Abp.Core, Version=4.4.4.0, Culture=neutral, PublicKeyToken=null
1,Application ‘/LM/W3SVC/11/ROOT’ with physical root ‘D:\core\LogisticsSource\microservices\CanteenService.Host’ failed to load coreclr. Exception message: CLR worker thread exited prematurely
Process Id: 16568.
File Version: 15.0.21133.7. Description: IIS ASP.NET Core Module V2 Request Handler. Commit: 67acc3d331454956fc06d6de2218a625e3e596f8
,2,Application ‘/LM/W3SVC/11/ROOT’ with physical root ‘D:\core\LogisticsSource\microservices\CanteenService.Host’ has exited from Program.Main with exit code = ‘0’. Please check the stderr logs for more information.
Process Id: 16568.
File Version: 15.0.21133.7. Description: IIS ASP.NET Core Module V2 Request Handler. Commit: 67acc3d331454956fc06d6de2218a625e3e596f8
程序的启动文件startup文件中内容出错
因为我是复制的上一个项目,其中包含了上一个项目的启动配置
直接复制过来造成冲突
改了就行了
这个错也有可能是马虎的原因,可以仔细找找文件内容是不是有书写问题。
这个错也跟少出现,一般不会像我这么马虎
找了两天错
谨以此文献给那些深夜加班努力找bug的人
更改后的:
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddApplication<CanteenServiceHostModule>();
}
public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory)
{
app.InitializeApplication();
}
}
启动成功!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。