hello-world-startup-capture-errors

By | 2019년 9월 24일

결과 :
An error occurred while starting the application.
Exception: error here
WebApplication1.Startup.ConfigureServices(IServiceCollection services) in Program.cs, line 21
Exception: error here
WebApplication1.Startup.ConfigureServices(IServiceCollection services) in Program.cs
21. throw new Exception(“error here”);
Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()
Microsoft.AspNetCore.Hosting.Internal.WebHost.Initialize()
Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()
Show raw exception details
.NET Core 4.6.28008.02 X64 v4.0.0.0 | Microsoft.AspNetCore.Hosting version 2.2.7-servicing-10089 | Microsoft Windows 10.0.18362 | Need help?