How to register an instance to the ServiceCollection in ASP.NET Core 1.0 RC2
try this:
services.AddSingleton<IConfiguration>(Configuration);
I had same problem like you and I solved it with this.
try this:
services.AddSingleton<IConfiguration>(Configuration);
I had same problem like you and I solved it with this.