Every time I call Configuration.GetSection, the Value property of the returned object is always null.
Configuration.GetSection
Value
My Startup constructor>
Startup
Just modify your ConfigureServices method to be like following:
ConfigureServices
public void ConfigureServices(IServiceCollection services) { services.AddOptions(); services.Configure(Configuration.GetSection("SqliteSettings")); services.AddMvc(); }
and it should work.