Startup threw an exception

Your IBevelDataStartup threw while Bevel registered build-time services.

  • Error
  • BEVEL042

What it means

Bevel calls ConfigureServices on your startup during the build. Whatever it threw is shown after the code.

Example message

text
Data/Posts/BlogPost.cs(6,15): error BEVEL042: IBevelDataStartup 'MySite.Data.BlogStartup' threw InvalidOperationException in ConfigureServices: Missing setting 'Blog:ApiKey'. Help: https://khalidabuhakmeh.github.io/bevel/reference/diagnostics/bevel042/

How to fix

Fix the exception in ConfigureServices. The startup runs at build time, so settings it reads must exist in the build environment, not only on the server.